Skip to main content
My situation is :
1- I have an Activity with will send the work items to muliple Destination Rules.
2- But, I havn't to send work items to the user if his name is the same as the Originator name - And the Activity Data field of that user must be counted as "Approved".

Below is my code, I make the work items not be sent to the user, but I couldn't finish the Acitivity Instance at that time.

Can any body help me ?
Thank very much

 = "Approved";


// ...How to finish the Acitivity in here ?...
}

}
Hi,

How do you create your destinations? The server should not be used to finish the client event, it's better to not have the originatior set as a destination user. Therefore, the modification should be made to the destination code.

I hope this helps you to resolve the issue
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. 😛

Reply