1- I stored the list of Destination Users in a string table like :
AdminList = "Admin1;Admin2;Admin3"
2-In the Activity destination rule's code, splited AdminList by ";" and then add each user to Activity Destination rule.
3-The Activity Exit Line Rule containt condistions that base on Activity data like (At least 1 slot = "Approved" ...)
Trouble occured when Originator is in the AdminList and I have to satisfy 2 below points :
p1 : WorkItems sould not sent to the Originator.
p2 : Originator Approval Status have a default value of "Approved", so that the Activity Exit Line Rule could run properly.
I thought over and over about :
..., the modification should be made to the destination code.
but there wasn't any solution. So I think perhaps I will try to modify the Exit Line Rule.
Thank you
Do you want the activity to complete immediately if an Admin starts the process?
What you want to do is modify the Destination Rule of the Activity so that the Originator is never added as a destination user.
This way you do not have to hack the system.
Yes, thank for your help.
I modified the Exit Line Rule and every thing has been done.