I have to create process in activiti which requires the following use case.
1.The form has a people search field 2.When someone completes the form and completes the task with a people search field filled with names,I need to set the next task's assigned with the name/names as users who can take action on the next task.
How can I achieve using the activiti engine apis.
any help on this is appreciated.
Thanks in advance.
You can use following steps:
taskService.complete(task.getId(), taskVariables);
taskVariables should contain variable with keys for example 'userId' or 'userIds' to access submitted values in process instance<userTask id="task" name="My Task" activiti:assignee="${userId}"/>
or <userTask id="task" name="My Task" activiti:candidateUsers="${userIds}"/>
to assign tasks
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With