You must follow Greg&#39;s solution then ;)<br><br><div class="gmail_quote">2010/5/13 Puneet duggal <span dir="ltr">&lt;<a href="mailto:duggalpunit@gmail.com">duggalpunit@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<div>@ Esteban</div>
<div> </div>
<div>i use update to  update my object  so that when my next rule is called  </div>
<div>it should receive the updated value  from the previous rule.</div>
<div> </div>
<div>so  using </div>
<dt><span><strong><code>lock-on-active</code></strong></span></dt>
<div>will allow me doint that or not ??</div><div><div></div><div class="h5">
<div><br><br> </div>
<div><span class="gmail_quote">On 5/13/10, <b class="gmail_sendername">Esteban Aliverti</b> &lt;<a href="mailto:esteban.aliverti@gmail.com" target="_blank">esteban.aliverti@gmail.com</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">If both rules are in the same agenda group you can use lock-on-active instead of no-loop:  
<div><a href="http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html#d0e3717" target="_blank">http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html#d0e3717</a><br>


<br> </div>
<div><br> </div>
<div>Best, </div>
<div><br>
<div class="gmail_quote">2010/5/13 Greg Barton <span dir="ltr">&lt;<a href="mailto:greg_barton@yahoo.com" target="_blank">greg_barton@yahoo.com</a>&gt;</span> 
<div><span><br>
<blockquote class="gmail_quote" style="padding-left:1ex;margin:0px 0px 0px 0.8ex;border-left:#ccc 1px solid">
<table cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td valign="top">It is so because that&#39;s what you&#39;re telling the system to do. :)<br><br>The no-loop modifier only prevents a rule&#39;s conditions from infinitely re-evaluating the tuples modified by it&#39;s own action, not the actions of other rules.  So when rule &quot;Area_EstimatedRval_test_10-01-09_12-31-14&quot; modifies a Para_2483 it will be reconsidered by the conditions in &quot;Area_EstimatesRval4_10-01-09_12-31-14&quot;.  The only way to prevent &quot;Area_EstimatesRval4_10-01-09_12-31-14&quot; from firing again is to craft it&#39;s conditions such that they&#39;re no longer true. (maybe &quot;fid2329 != eid2143&quot; since that contradicts what &quot;Area_EstimatedRval_test_10-01-09_12-31-14&quot; does, but I don&#39;t know if that makes sense for your rules.)<br>


<br>--- On <b>Wed, 5/12/10, Puneet duggal <i>&lt;<a href="mailto:duggalpunit@gmail.com" target="_blank">duggalpunit@gmail.com</a>&gt;</i></b> wrote:<br>
<blockquote style="padding-left:5px;margin-left:5px;border-left:rgb(16,16,255) 2px solid"><br>From: Puneet duggal &lt;<a href="mailto:duggalpunit@gmail.com" target="_blank">duggalpunit@gmail.com</a>&gt;<br>
Subject: [rules-users] Problem in update() method<br>To: &quot;Rules Users List&quot; &lt;<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>&gt;<br>
Date: Wednesday, May 12, 2010, 10:54 PM 
<div>
<div></div>
<div><br><br>
<div>
<p> </p>
<p>hi frnds <br>i am having problem  with update() method when i call update method  from first rule<br>it calls  second rule and goes in infinite loop calling the second method rule again and again <br>why is it so ??</p>



<p><br>rule &quot;Area_EstimatesRval4_10-01-09_12-31-14&quot;<br>date-effective &quot;01-Oct-2009&quot; date-expires &quot;31-Dec-2014&quot;  salience 5<br> no-loop true <br>  when <br> objectP2483 : Para_2483( (fid2329&gt;=0);<br>


 <br> then </p>
<p> objectP2483.setFid2339(objectP2483.getFid2338() *3.1);update(objectP2483);</p>
<p>  rule &quot;Area_EstimatedRval_test_10-01-09_12-31-14&quot;<br>date-effective &quot;01-Oct-2009&quot; date-expires &quot;31-Dec-2014&quot;  salience 5 <br> no-loop true <br>  when <br> objectP2483 : Para_2483( fid2339&gt;0);<br>


  then <br> System.out.println(&quot;Area_EstimatedRval_test_10-01-09_12-31-14&quot;);<br> objectP2483.setFid2339(objectP2483.getEid2143());<br> <br> update(objectP2483); end </p></div><br> </div></div>-----Inline Attachment Follows-----<br>


<br>
<div>_______________________________________________<br>rules-users mailing list<br><a href="http://mc/compose?to=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></blockquote></td></tr>
</tbody></table><br><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><br></blockquote></span></div>
</div><br><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br> </div><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><br></blockquote></div><br>
</div></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><br clear="all"><br>-- <br>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX<br><br>Esteban Aliverti<br>