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't want the same rule to re-activate itself, you no-loop true.<br>
If u don'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"><<a href="mailto:thomas.moncieu@gmail.com">thomas.moncieu@gmail.com</a>></span><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 "ID_15202" <br>ruleflow-group "RG_A"<br>
when<br>i : Item(name=="cheese")<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 "ID_15203" <br>ruleflow-group "RG_T"<br>when<br>t : Bill($amount : totalAmount, totalAmount > (new Double(150.0).doubleValue()));<br>then<br>System.out.println("tot : " + $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"><<a href="mailto:surya_n2007@yahoo.co.in" target="_blank">surya_n2007@yahoo.co.in</a>></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>
<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>