[rules-users] Multiple variables problem..

skasab2s skasab2s at smail.inf.fh-brs.de
Mon Sep 19 14:05:45 EDT 2011


Thanks for the reply. This is the full code:

/declare ObjectOneTwo
  value1 : boolean
  value2 : boolean
end

rule "first rule"
  when
      $objectOneTwo : ObjectOneTwo (value1 == false)
  then
      $objectOneTwo.setValue1(true);
      update($objectOneTwo);
  end

rule "second rule"
  when
     $objectOneTwo : ObjectOneTwo (value2 == false)
 then
       $objectOneTwo.setValue2(true);
      update($objectOneTwo); //<-- this is where "first rule" fires once
again (not desired for me and that's the problem)
 end
/


Thanks

--
View this message in context: http://drools.46999.n3.nabble.com/Multiple-variables-problem-tp3349281p3349377.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list