No, lock-on-active is not required since the LHS tests for the field value1 being false. You can verify easily (just add a high-salience rule that inserts one ObjectOneTwo) that the full code works correctly, as posted. So, this is not the code that &quot;causes the problem&quot;.<br>
<br>What else might happen? There could be more than one ObjectOneTwo, so the first rule might fire again with another one of these. Or some other rule resets value1 of the (single) ObjectOneTwo. Or the object is retracted and inserted anew.<br>
<br>Posting of code that does not reproduce the problem isn&#39;t helpful either. <br><br>-W<br><br><br><div class="gmail_quote">2011/9/19 Mauricio Salatino <span dir="ltr">&lt;<a href="mailto:salaboy@gmail.com">salaboy@gmail.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">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><div><div></div><div class="h5"><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" target="_blank">skasab2s@smail.inf.fh-brs.de</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

Thanks for the reply. This is the full code:<br>
<div><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>  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>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" target="_blank">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></div></div><font color="#888888">-- <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>
</font></div>
<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>
<br></blockquote></div><br>