[rules-users] Parallel rule execution in a RuleFlow
Steven Hale
Steven.Hale at omegapoint.se
Fri Nov 14 02:36:05 EST 2008
Thanks Kris. After reading the documentation I had been expecting and hoping for threading in parallel branches. I gather that asynchronous work items are a new feature in version 5. They look like they will provide what we are looking for.
/Steven
-----Original Message-----
From: rules-users-bounces at lists.jboss.org on behalf of Kris Verlaenen
Sent: Thu 13/11/2008 16:45
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 at 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 at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/ms-tnef
Size: 3768 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20081114/1dac6e48/attachment.bin
More information about the rules-users
mailing list