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.

<<image001.jpg>>

_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to