AnsweredAssumed Answered

Solution for dynamic form

Question asked by srouil on Oct 3, 2011
Latest reply on Oct 4, 2011 by trademak
Hi,

I am playing a little bit with Activiti to evaluate a BPM engine for a future project.
So far, I found configuring and embedding the engine with Spring very simple. I found my well in the API as well.

However, I am still unsure about the right way to use forms:
For now I have:
1. Static forms which, when submitted, will call TaskService.complete(String taskId, Map<String,Object> variables) to complete user task and eventually set some process variables. I use FormData.formkey to retrieve the right form to display.
2. Dynamic forms: I set FormData.formkey to an arbitrary value of "generic" to open a generic form. This generic form uses the information of FormData.getFormProperties() to build a generic form, like it is probably done in Activiti Explorer. It calls FormService submitTaskFormData(String taskId, Map<String,String> properties) to complete user task.

My application has some requirements for supporting the definition of dynamic forms (forms that require no new deployment of the application) that go a step further that my generic form or the Activiti Explorer. Do you have some hints, or experiences about this? My web environment is JSF or GWT.

Thanks in advance for your help,
Best regards,
Samuel

Outcomes