Skip to main content
Nintex Community Menu Bar

Parallel Activities handling

  • October 15, 2009
  • 4 replies
  • 18 views

Forum|alt.badge.img+11

Hi


I have 4 activities in my process A,B,C and D


B and C are parallel. they both after A and Before D.


A---<B,C>---D


D cannot start untill both B and C are completed.


How to handle this in k2

4 replies

Forum|alt.badge.img+11
  • October 16, 2009

You can use a preceeding rule on activity D for this.  A preceeding rule must evaluate to true before the activity is allowed to execute.  The preceeding rule is only evaluated when a line rule coming into the activity executes.


Create two process level boolean variables (like BComplete and CComplete) and given them an initial value of false.  In a server code event at the end of activities B and C set the boolean flags to true.  In the preceeding rule of D check the condition to check that the two datafields are true.


Check out the K2 book for lots of information like this.


Forum|alt.badge.img+11
  • Author
  • October 16, 2009

thanks for you answer


but what about the two instances that appear in the worklist of the user who is in the destination rule of  D when B and C are complete. just try the scenario i provided and see for your self.


Forum|alt.badge.img+11
  • October 17, 2009

If you have set the preceeding rule on D correctly so it can only be true if B & C have both completed, then you will get only one instance of D.


Forum|alt.badge.img+11
  • Author
  • October 18, 2009

Thanks for your effort and time...problem is solved