<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Parallel rule execution in a RuleFlow</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.6000.16735" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Steven,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Kris</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=Steven.Hale@omegapoint.se
href="mailto:Steven.Hale@omegapoint.se">Steven Hale</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=rules-users@lists.jboss.org
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, November 13, 2008 3:38
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [rules-users] Parallel rule
execution in a RuleFlow</DIV>
<DIV><BR></DIV><!-- Converted from text/plain format -->
<P><FONT size=2>I've been experimenting with ruleflows and in particular
parallel execution. According to the documentation an AND split<BR>"means that
the control flow will continue in all outgoing connections
simultaneously".<BR><BR>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).<BR><BR>Is this the expected behaviour or
am I doing something wrong?<BR><BR>/Steven<BR></FONT></P>
<P>
<HR>
<P></P>_______________________________________________<BR>rules-users mailing
list<BR>rules-users@lists.jboss.org<BR>https://lists.jboss.org/mailman/listinfo/rules-users<BR></BLOCKQUOTE></BODY></HTML>