so lock-on-active will help.. you should add that in both rules
Thanks for the reply. This is the full code:
$objectOneTwo : ObjectOneTwo (value1 == false)
/declare ObjectOneTwo
value1 : boolean
value2 : boolean
end
rule "first rule"
when
then
$objectOneTwo.setValue1(true);
update($objectOneTwo);
end$objectOneTwo : ObjectOneTwo (value2 == false)
rule "second rule"
when
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.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users