<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">



<META content="MSHTML 6.00.2900.3395" name=GENERATOR></HEAD>
<BODY >
<DIV>
<DIV dir=ltr align=left><FONT face=Calibri>
<DIV dir=ltr align=left><SPAN class=383281611-10092008><FONT 
face=Calibri>Thomas,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383281611-10092008><FONT 
face=Calibri></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=383281611-10092008><FONT 
face=Calibri>Everytime you update a fact in the WM, it is matched against all 
the rules. An activation is created for all such matching 
cases.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383281611-10092008><FONT 
face=Calibri></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=383281611-10092008><FONT face=Calibri>In 
your example whenever the fact is updated in Rule 2, two activations are 
created, one for&nbsp;Rule 1 and one for Rule 2. Rule 2 doesn't get fired 
because of no-loop clause.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383281611-10092008><FONT face=Calibri>A 
similar senario occurs when the fact is update in Rule1.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383281611-10092008><FONT 
face=Calibri></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=383281611-10092008><FONT face=Calibri>You 
may avoid looping by not updating the fact in the WM.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=383281611-10092008><FONT 
face=Calibri></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=383281611-10092008><FONT 
face=Calibri>Pallav</FONT></SPAN></DIV></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rules-users-bounces@lists.jboss.org 
[mailto:rules-users-bounces@lists.jboss.org] <B>On Behalf Of </B>thomas 
kukofka<BR><B>Sent:</B> Wednesday, September 10, 2008 4:25 PM<BR><B>To:</B> 
Rules Users List<BR><B>Subject:</B> [rules-users] looping 
problem<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV dir=ltr>Hello,<BR><BR>I have an urgent problem with a rule that still 
loops.<BR>I have attached a simplified self-containded example of the problem. 
The example uses a generic fact object and lazy initialisation of the output 
fact, the output fact(s) generated by the attached rule should be able to be 
used by another rules (which I haven't attached) as input fact.<BR><BR>For the 
attachement see the last post by me (same subject) !<BR><BR>I really would 
appreciate any solution.<BR>Regards<BR>Thomas</DIV></DIV>
<DIV>
<HR>
</DIV>
<P CLASS="BulletedList" STYLE="MARGIN: 0in 0in 0pt; TEXT-INDENT: 0in; mso-list: none; tab-stops: .5in"><SPAN STYLE="FONT-SIZE: 8pt; COLOR: gray; mso-bidi-font-family: Arial"><FONT FACE="Arial" COLOR="gray" SIZE="1">NOTICE: If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error.</FONT></SPAN></P>
<DIV>
</DIV></BODY></HTML>