Steven,
 
It depends on what kind of activities you are trying to execute in each of your branches.  The AND-split will not assign different threads to each of the branches, but trigger the outgoing branches one after the other. However, this results in parallelism when one of the branches contains wait states.  For example, if I add two parallel human tasks in my flow, the and split will first create the first task and not wait for its completion but also trigger the creation of the second task.  At that point, both tasks are executing in parallel.
 
So parallel execution will occur if you execute your work asynchronously (using work items) or have wait states (like an event wait or timer node).  And we recommend users to use asynchronous work items to execute actions that are not instantaneous but might take some time to process.
 
Kris
 
----- Original Message -----
From: Steven Hale
To: rules-users@lists.jboss.org
Sent: Thursday, November 13, 2008 3:38 PM
Subject: [rules-users] Parallel rule execution in a RuleFlow

I've been experimenting with ruleflows and in particular parallel execution. According to the documentation an AND split
"means that the control flow will continue in all outgoing connections simultaneously".

I've been unable to demonstrate this. All my rules in one branch always execute before the rules on the other branch (I have an AND join joining these branches again).

Is this the expected behaviour or am I doing something wrong?

/Steven


_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users