Excuse me for losing the beginning of the thread, I&#39;m a new user of this mailing list ...<br>I solved my problem in separating my ruleflow in two because some rules should be fired many times and so no-loop was not the solution I needed.<br>
<br>So I do the following thing :<br><br>            workingMemory.startProcess(&quot;RG_A&quot;);<br>            workingMemory.fireAllRules();<br>            FactHandle f = workingMemory.getFactHandle(_bill);<br>            workingMemory.update(f, _bill);<br>
            workingMemory.startProcess(&quot;RG_T&quot;);<br>            workingMemory.fireAllRules();<br>            workingMemory.dispose();<br><br>Is lock-on-active efficient only in a ruleflow-group or for all the rules ?<br>
<br><div class="gmail_quote">2009/3/16 David Sinclair <span dir="ltr">&lt;<a href="mailto:dsinclair@chariotsolutions.com">dsinclair@chariotsolutions.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;">
You lost the rest of the thread, i.e. original questions, Thomas. What was the original problem again? Also, Which ruleflow-group comes first, A or T?<br><br>And if u don&#39;t want the same rule to re-activate itself, you no-loop true.<br>

If u don&#39;t want a rule within the same ruleflow-group to re-activate others, use lock-on-active true<br><br><div class="gmail_quote">2009/3/16 thomas moncieu <span dir="ltr">&lt;<a href="mailto:thomas.moncieu@gmail.com" target="_blank">thomas.moncieu@gmail.com</a>&gt;</span><div>
<div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi, these are the rules :<br><br>Rule A : <br><br>rule &quot;ID_15202&quot; <br>ruleflow-group &quot;RG_A&quot;<br>

when<br>i : Item(name==&quot;cheese&quot;)<br>t : Bill(anItem==i);<br>then<br>t.setAmount(t.getAmount() - 100);<br>
update(t);<br>end<br><br>Rule B: <br><br>rule &quot;ID_15203&quot; <br>ruleflow-group &quot;RG_T&quot;<br>when<br>t : Bill($amount : totalAmount,  totalAmount &gt; (new Double(150.0).doubleValue()));<br>then<br>System.out.println(&quot;tot : &quot; + $tot);<br>


end<br><br>It gives the correct result if shadow proxy is turned on.<br><br>But all the rules are re-evaluated with the update(t). Is there another way that no-loop or lock-on-active that prevents from re-evaluating all the rules  ?<br>


<br>Thanks for your interest<br><br><div class="gmail_quote">2009/3/12 surya_n2007 <span dir="ltr">&lt;<a href="mailto:surya_n2007@yahoo.co.in" target="_blank">surya_n2007@yahoo.co.in</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;">


<br>
Please post the complete rule where you are updating fact.<br>
<font color="#888888">--<br>
View this message in context: <a href="http://www.nabble.com/Problem-with-updated-facts-tp22458416p22477032.html" target="_blank">http://www.nabble.com/Problem-with-updated-facts-tp22458416p22477032.html</a><br>
Sent from the drools - user mailing list archive at Nabble.com.<br>
</font><div><div></div><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>
</div></div></blockquote></div><br>
Hi,<br>I have a problem when updating fields in rules :<br><br>Here&#39;s the rule :<br><br>when<br>t : Bill($amount : totalAmount,  totalAmount &gt; (new Double(150.0).doubleValue()));<br>then<br>System.out.println(&quot;tot : &quot; + $tot);<br>

end<br><br>The original totalAmount  is 200.<br>A
fact update sets the totalAmount at 100 (with an update of the
facthandle that I can see in the debugger of the working memory) so the
condition of the rule does not be true.<br>
Nevertheless, the System.out is made and prints 100.<br><br>I use Statefull session and set shadow facts to true.<br><br>Thanks for helping me !<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></div></div><br>
<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>