cancel
Showing results for 
Search instead for 
Did you mean: 

How to complete UserTask automatically?

xiaobinzhang
Champ in-the-making
Champ in-the-making
Hi erverybody!
I hava a use case: if we assgined someon say 'Jack' to a UserTask, and 'Jack' complete his UserTask, then the workflow go to the subflow which is also a UserTask which the assginee is also 'Jack', now what i want is to complete the UserTask automatically,caurse the tow UserTasks have the same assignee. So anybody has any idea?
1 REPLY 1

vasile_dirla
Star Contributor
Star Contributor
You could use a executionListener or an TaskListener.
http://www.activiti.org/userguide/#taskListeners

When the task is created then you can complete it automatically.
http://www.activiti.org/userguide/#api.services.tasks