cancel
Showing results for 
Search instead for 
Did you mean: 

Programmatically create UserTasks with form elements

rantanohneplan
Champ in-the-making
Champ in-the-making
Hello everybody,

I wonder if it is possible to create a UserTask and extend it with some form elements. The first part works just fine. I created a UserTask with the TaskService and added an attachment. The task can be seen and completed in activiti-explorer. Now, I want the specific user to be able to provide some additional data before completing the task. A form would be ideal for this job.

I already figured out that you can receive the FormProperties via the FormService's getTaskFormData. But it seems that you cannot add new FormProperties to the list. Is there another way to programmatically create a form that can be used in a UserTask?

Greetings
Sven
1 REPLY 1

trademak
Star Contributor
Star Contributor
Hi Sven,

No form properties are only supported for user tasks defined in BPMN processes right now.
You can set a form key and define a custom form in your application.

Best regards,