Skip to main content

Hi,


I have a scenario where i am getting the destination users for an activity in an xml structure from the asp.net page along with the level of the users. now i need to send the task to the destination users according to their order. e.g say i get 4 users  User1 of Level 1, User2 of Level2, User3 of Level2, User4 of Level3.


Now i need to send the task to User1 first. When User1 finishes the task, then send the task to User2 and User3 simultaneously as they are on same level. once they are done with the task, send the task to user4.


Can somebody guide me how can I achieve this?


Regards,


Ritesh

This sounds like a Ad-hoc type of approval scenario.  You probably need to split your destination users into 3 groups. i.e.:



  • User1
  • User2, User3
  • User4

So if you have a counter, you can start with level 1 users.  At the end of the activity, increment the counter and loop back the line to the same approval activity again.  This will effectively route to level 2 users using the same activity.


You probably also need to fudge a bit of code to get the appropriate users out from your XML structure so that the destination rules understand it.


 


Can this same method be used where instead of User2 and User3 you have Role2 and Role3 and any User associated to either Role can perform the approval?


Reply