Mehdi wrote:
hi,
I have a class Customer.java with class variable
"allTradeAmounts" and
I have two rules as follows:
rule "rule 1"
when
$c : Customer();
then
$c.setAllTradeAmounts($c.getAllTradeAmounts().add(1000));
System.out.println("after modify:
"+$c.getAllTradeAmounts());
how does the engine know this has changed? call:
update($c);
> If you do that, you're going to loop (the rule "rule
1" is
always true)
end