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>