Because I need the precision of a double , for example :<br><br>if totalAmount = 150.3<br><br>1) t : Bill($amount : totalAmount,  totalAmount &lt; 150.0);<br><br>=&gt; the rule will be fired (and should not be)<br><br>2) t : Bill($amount : totalAmount,  totalAmount &lt; (new<br>

&lt; Double(150.0).doubleValue()));<br><br>=&gt; the condition will be not be satisfied<br><br>I solve my first problem.<br><br><br><br><div class="gmail_quote">2009/3/16 Greg Barton <span dir="ltr">&lt;<a href="mailto:greg_barton@yahoo.com">greg_barton@yahoo.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;"><br>
Not addressing your stated problem, but I have one question: why are you using this expression:  &quot;new Double(150.0).doubleValue()&quot;<br>
<br>
Why not just use &quot;150.0&quot;?<br>
<br>
--- On Mon, 3/16/09, thomas moncieu &lt;<a href="mailto:thomas.moncieu@gmail.com">thomas.moncieu@gmail.com</a>&gt; wrote:<br>
<br>
&gt; From: thomas moncieu &lt;<a href="mailto:thomas.moncieu@gmail.com">thomas.moncieu@gmail.com</a>&gt;<br>
&gt; Subject: Re: [rules-users] Problem with updated facts<br>
&gt; To: &quot;Rules Users List&quot; &lt;<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>&gt;<br>
&gt; Date: Monday, March 16, 2009, 9:39 AM<br>
<div><div></div><div class="h5">&gt; Hi, these are the rules :<br>
&gt;<br>
&gt; Rule A :<br>
&gt;<br>
&gt; rule &quot;ID_15202&quot;<br>
&gt; ruleflow-group &quot;RG_A&quot;<br>
&gt; when<br>
&gt; i : Item(name==&quot;cheese&quot;)<br>
&gt; t : Bill(anItem==i);<br>
&gt; then<br>
&gt; t.setAmount(t.getAmount() - 100);<br>
&gt; update(t);<br>
&gt; end<br>
&gt;<br>
&gt; Rule B:<br>
&gt;<br>
&gt; rule &quot;ID_15203&quot;<br>
&gt; ruleflow-group &quot;RG_T&quot;<br>
&gt; when<br>
&gt; t : Bill($amount : totalAmount,  totalAmount &gt; (new<br>
&gt; Double(150.0).doubleValue()));<br>
&gt; then<br>
&gt; System.out.println(&quot;tot : &quot; + $tot);<br>
&gt; end<br>
&gt;<br>
&gt; It gives the correct result if shadow proxy is turned on.<br>
&gt;<br>
&gt; But all the rules are re-evaluated with the update(t). Is<br>
&gt; there another way<br>
&gt; that no-loop or lock-on-active that prevents from<br>
&gt; re-evaluating all the<br>
&gt; rules  ?<br>
&gt;<br>
&gt; Thanks for your interest<br>
&gt;<br>
&gt; 2009/3/12 surya_n2007 &lt;<a href="mailto:surya_n2007@yahoo.co.in">surya_n2007@yahoo.co.in</a>&gt;<br>
&gt;<br>
&gt; &gt;<br>
&gt; &gt; Please post the complete rule where you are updating<br>
&gt; fact.<br>
&gt; &gt; --<br>
&gt; &gt; View this message in context:<br>
&gt; &gt;<br>
&gt; <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>
&gt; &gt; Sent from the drools - user mailing list archive at<br>
&gt; Nabble.com.<br>
&gt; &gt;<br>
&gt; &gt; _______________________________________________<br>
&gt; &gt; rules-users mailing list<br>
&gt; &gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; &gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
&gt; &gt;<br>
&gt; _______________________________________________<br>
&gt; rules-users mailing list<br>
&gt; <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
&gt; <a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
<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>
</div></div></blockquote></div><br>