Skip to main content
Nintex Community Menu Bar

How can I finish one Activity in a Default client Event

  • January 23, 2006
  • 5 replies
  • 1 view

Forum|alt.badge.img+1
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 ?...
}

}

5 replies

Forum|alt.badge.img+4
  • Rookie
  • January 23, 2006
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

Forum|alt.badge.img+1
  • Author
  • January 23, 2006
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

Forum|alt.badge.img+4
  • Rookie
  • January 24, 2006
Do you want the activity to complete immediately if an Admin starts the process?

Forum|alt.badge.img+6
  • January 24, 2006
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.

Forum|alt.badge.img+1
  • Author
  • January 24, 2006
Yes, thank for your help.
I modified the Exit Line Rule and every thing has been done. :P