Is the fact updated via another rule? If so, can u post full definitions of both rules? <br><br><div class="gmail_quote">On Wed, Mar 11, 2009 at 11:58 AM, thomas moncieu <span dir="ltr"><<a href="mailto:thomas.moncieu@gmail.com">thomas.moncieu@gmail.com</a>></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;">Hi,<br>I have a problem when updating fields in rules :<br><br>Here's the rule :<br><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>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>_______________________________________________<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>