cancel
Showing results for 
Search instead for 
Did you mean: 

Regarding Task Approval

jyotibhushan
Champ on-the-rise
Champ on-the-rise
Hello,

The Task is assigned to the group. If all the members of group approved the task, then only task will be approved and if any member of the group reject the task, then task will get rejected. The number of users in the group will not be know in advance and can vary from case to case

Need you suggestion, how this can be done ???

Regards
Jyoti Yadav
5 REPLIES 5

trademak
Star Contributor
Star Contributor
A multi instance user task would make sense for your use case. You can use a variable to define the group of users. Then you need to set the completion condition to something like:

${nrOfCompletedInstances == nrOfInstances}

And check if all users have approved the user task by setting a variable for that.

Best regards,

jyotibhushan
Champ on-the-rise
Champ on-the-rise
Thanks for you suggestion but i am new to activiti, can you please help me in defining Multi Instance user task??? any document ???

jyotibhushan
Champ on-the-rise
Champ on-the-rise
Hi,

How to manage the activiti:formProperty in case of Multi Instance Task ? Each repetitive step overwrite the form properties values of previous step ?? Need Help, Please help

trademak
Star Contributor
Star Contributor
Yes, using a form property for a multi instance task would overwrite the property values. A solution could be to use a Task listener on the complete event and copy the form property values to a list or so. Or you could create a multi instance sub process with a user task and service task. Then you could implement logic in the service task copying the values as well.

Best regards,