<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV></DIV><SPAN class=585415707-27112007><FONT face=Arial color=#0000ff
size=2> > </FONT></SPAN>Mehdi wrote:
<BLOCKQUOTE cite=mid:34885.40429.qm@web54306.mail.re2.yahoo.com
type="cite">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></BLOCKQUOTE>
<DIV><SPAN class=585415707-27112007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=585415707-27112007><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN><EM>how does the engine know
this has changed? call:<BR><SPAN class=585415707-27112007><FONT face=Arial
color=#0000ff
size=2> </FONT></SPAN>update($c);<SPAN
class=585415707-27112007><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></EM></DIV>
<DIV><SPAN class=585415707-27112007><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=585415707-27112007><FONT face=Arial color=#0000ff
size=2> >> If you do that,
you're going to loop (the rule "rule 1"</FONT> <FONT face=Arial
color=#0000ff size=2>is always true)</FONT></SPAN><BR><SPAN
class=585415707-27112007><FONT face=Arial color=#0000ff
size=2> </FONT></SPAN></DIV>
<DIV><SPAN class=585415707-27112007> </SPAN></DIV>
<DIV><SPAN
class=585415707-27112007> </SPAN>end<BR></DIV></BODY></HTML>