[rules-users] Problem with class Variable
DELBART Vincent
delbart.v at mipih.fr
Tue Nov 27 02:59:47 EST 2007
> 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20071127/45651f16/attachment.html
More information about the rules-users
mailing list