so lock-on-active will help.. you should add that in both rules<div>rule &quot;one&quot;</div><div>   lock-on-active</div><div>   then</div><div>     ...</div><div>   when</div><div>end</div><div><br><div class="gmail_quote">
On Mon, Sep 19, 2011 at 3:05 PM, skasab2s <span dir="ltr">&lt;<a href="mailto:skasab2s@smail.inf.fh-brs.de">skasab2s@smail.inf.fh-brs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Thanks for the reply. This is the full code:<br>
<div class="im"><br>
/declare ObjectOneTwo<br>
  value1 : boolean<br>
  value2 : boolean<br>
end<br>
<br>
rule &quot;first rule&quot;<br>
  when<br>
</div>      $objectOneTwo : ObjectOneTwo (value1 == false)<br>
  then<br>
      $objectOneTwo.setValue1(true);<br>
      update($objectOneTwo);<br>
<div class="im">  end<br>
<br>
rule &quot;second rule&quot;<br>
  when<br>
</div>     $objectOneTwo : ObjectOneTwo (value2 == false)<br>
 then<br>
       $objectOneTwo.setValue2(true);<br>
      update($objectOneTwo); //&lt;-- this is where &quot;first rule&quot; fires once<br>
again (not desired for me and that&#39;s the problem)<br>
 end<br>
/<br>
<br>
<br>
Thanks<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/Multiple-variables-problem-tp3349281p3349377.html" target="_blank">http://drools.46999.n3.nabble.com/Multiple-variables-problem-tp3349281p3349377.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br> - CTO @ <a href="http://www.plugtree.com" target="_blank">http://www.plugtree.com</a>  <br> - MyJourney @ <a href="http://salaboy.wordpress.com" target="_blank">http://salaboy.wordpress.com</a><div>
- Co-Founder @ <a href="http://www.jugargentina.org" target="_blank">http://www.jugargentina.org</a><br> - Co-Founder @ <a href="http://www.jbug.com.ar" target="_blank">http://www.jbug.com.ar</a><br> <br> - Salatino &quot;Salaboy&quot; Mauricio -</div>
<br>
</div>