[rules-users] rule flow
Manukyan, Sergey
SManukyan at lear.com
Fri Sep 14 15:19:55 EDT 2007
Folks,
Using 4.0.1. Trying to do use rule flow to manage the execution of
rules. As I understood in Split node with type XOR I can set conditions
for each destination that are executed against facts in working memory.
Let's consider I have a rule that executes every time it finds Integer
object in memory and increments it.
rule "Increment"
ruleflow-group "Up"
when
$i : Integer(intValue < 10)
then
System.out.println("INTEGER : " + $i);
retract($i);
insert(new Integer($i.intValue() + 1));
end
Now, I have the following rule flow in place:
The Split to Up arrow has constraint : Integer(intValue < 5)
And initially I am inserting this fact : insert (new Integer(0))
Now my understanding is that It should execute rule "Increment" 5
times.... But instead it does it 10 times...
Is that a normal behavior? Why cannot Split understand that only when
there is an Integer(intValue < 5) only then execute rule with
ruleflow-group "Up"
Thanks...
-Sergey
**********************
** LEGAL DISCLAIMER **
**********************
This E-mail message and any attachments may contain
legally privileged, confidential or proprietary
information. If you are not the intended recipient(s),
or the employee or agent responsible for delivery of
this message to the intended recipient(s), you are
hereby notified that any dissemination, distribution
or copying of this E-mail message is strictly
prohibited. If you have received this message in
error, please immediately notify the sender and
delete this E-mail message from your computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20070914/afc60ab8/attachment.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/jpeg
Size: 7191 bytes
Desc: image001.jpg
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20070914/afc60ab8/attachment.jpe
More information about the rules-users
mailing list