cancel
Showing results for 
Search instead for 
Did you mean: 

Howto render a custom form?

mtaal
Champ in-the-making
Champ in-the-making
Hi,
I am using activiti 5.8. My question is howto create my own html (actually javascript) form and define this in a workflow xml. I need more flexibility than provided by the form properties/form implementation of Activiti.

I checked the formKey usage but it does not seem to be used explicitly anymore.

Is there another way? Or which classes can I replace/override to implement this?

gr. Martin
10 REPLIES 10

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
The formkey is not used explicit anymore in the activiti explorer, but you can use it from the api and decide yourself which e.g. Jsf form to show.

mtaal
Champ in-the-making
Champ in-the-making
Thanks, but my question is also how to/what to override to generate custom html which should be rendered inside the Activiti task display. Is there a specific override point I can use?

gr. Martin

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
If you just use the api to ineract with activiti, here is no need to override anything…

mtaal
Champ in-the-making
Champ in-the-making
Sorry I mean if I want activiti explorer to display my custom html, how can I accomplish this?

gr. Martin

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
By doing a lot of coding, searching etc… Sorry I cannot be more precise. That is exactely the reason we (I) do not use the explorer for end-user apps.

mtaal
Champ in-the-making
Champ in-the-making
Ok, thanks for the reply! (although I had hoped a different answer ofcourse… 🙂

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
I'm curios to why you want a different ui framework integrated in explorer. What are the advantages that explorer has that you want to put integration efforts into it?

mtaal
Champ in-the-making
Champ in-the-making
The only thing what I want is to add a hyperlink to a screen which allows the user to accomplish the task.
For the rest I want users to view their tasks, current states of work flows, claim a task, most things of which are available in the explorer ui.

gr. Martin

ronald_van_kuij
Champ on-the-rise
Champ on-the-rise
The only thing what I want is to add a hyperlink to a screen which allows the user to accomplish the task.

Isn't that kind of the tasklist screen?

For the rest I want users to view their tasks, current states of work flows, claim a task, most things of which are available in the explorer ui.

Why 'most'?

And adding a fully custom form, that does not fit in directly with the explorer (not a form in the way Activiti uses it) is way more work than to use the api and e.g. the CDI components and develop your own ui (with tasklists etc) in that specific framework… Believe me, I tried.