[rules-users] Ruleflow "OR" Split Nodes

ringsah at comcast.net ringsah at comcast.net
Wed Nov 19 09:59:20 EST 2008


I am having a problem with the ruleflow in Drools 4.0.7. I have the following simple ruleflow with a split node with a type of "OR" with two outgoing connections, each going to a different ruleflow group (image of ruleflow attached).


The problem I am having is with the join node, into which the two ruleflow groups connect back in. If I use a join node type of "AND", then it works okay unless only one branch is executed. Then the action, which simply prints "Action node" to the console, never gets executed.

If I use a join node type of "XOR", then it works okay unless both branches are executed. Then it appears that both branches are executed, because the action get executed twice. However, the rules from the ruleflow group in only one of the branches end up getting fired.

I have attached a zip file containing an extremely simple eclipse test project that illustrates the problem.

Thanks in Advance,
-Hans
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20081119/836a45a3/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/x-tar
Size: 4485 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20081119/836a45a3/attachment.tar 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/x-tar
Size: 7208 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20081119/836a45a3/attachment-0001.tar 


More information about the rules-users mailing list