hi,<br><br>I have a class Customer.java with class variable "allTradeAmounts" and<br><br>I have two rules as follows:<br><br>rule "rule 1"<br> when<br> $c : Customer();<br> then <br> <br> $c.setAllTradeAmounts($c.getAllTradeAmounts().add(1000)); <br> System.out.println("after modify: "+$c.getAllTradeAmounts());<br>end<br><br>rule "rule 2"<br> when<br> $c : Customer(allTradeAmounts < 200 );<br> then<br> System.out.println("AllTradeAmounts < 200 ");<br><br>end<br><br>The rule 1 works fine and changes the value of this variable.<br>My question is, although the rule 1 has changed the class variable and I can see the result of changed variable EACH TIME,
when i insert a Customer object, why is the second rule TRUE? I have changed the value of AllTradeAmounts and I can print it in RHS and it is more than 200, but in LHS if I check with "allTradeAmounts < 200 " ,it is true.<br>It must be FALSE and does not fire the rule.<br>can someone help me? what do I do wrong in LHS.<br>In the same rule (rule 2) if I print the allTradeAmounts it is more than 200.<br>sorry it is a simple question, but I m new to drools.<br>Thanks and regards <span style="text-decoration: underline;"></span> <p> 
<hr size=1>Be a better sports nut! Let your teams follow you
with Yahoo Mobile. <a href="http://us.rd.yahoo.com/evt=51731/*http://mobile.yahoo.com/sports;_ylt=At9_qDKvtAbMuh1G1SQtBI7ntAcJ
">Try it now.</a>