<!DOCTYPE html PUBLIC '-//W3C//DTD HTML 4.01 Transitional//EN'>
<html>
<head>
<meta http-equiv='Content-Type' content='text/html;charset=us-ascii'>
<style>BODY{font:10pt Tahoma, Verdana, sans-serif;}</style>
</head>
<body>
<DIV>I have a rule which I've added 'no-loop' to.</DIV>
<DIV> </DIV>
<DIV>In RHS is change properties on a bean I have in the working memeory. I use a propertyChange listener to notify the working memory of this change. As I understand, by using 'no loop' in the rule, after being activated that first time it should not have run again, but it does and I get an endless loop.</DIV>
<DIV> </DIV>
<DIV>here is an example: This rule was written in drools 3.0.6 but currently we are running on the lates 4GA release</DIV>
<DIV> </DIV>
<DIV>rule "seniority_11"</DIV>
<DIV> salience 70</DIV>
<DIV> activation-group "seniority"</DIV>
<DIV> agenda-group "borrowers"</DIV>
<DIV> no-loop true</DIV>
<DIV> when</DIV>
<DIV> borrower:BorrowerLocal()</DIV>
<DIV> eval (borrower:getSeniorityAtWork() == null || borrower.getSenorityAtWork <=6)</DIV>
<DIV> person: PersonLocal(employmentTypeVlId == "EMPLOYED")</DIV>
<DIV> approvalParams: ApprovalParams(numOfExceptions >= 0)</DIV>
<DIV><FONT size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial><SPAN style="mso-tab-count: 1"> </SPAN><SPAN class=GramE>then</SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"><FONT face=Arial><SPAN style="mso-tab-count: 2"> </SPAN><SPAN class=SpellE><SPAN class=GramE>approvalParams.setNumOfExceptions</SPAN></SPAN><SPAN class=GramE>(</SPAN><SPAN class=SpellE>approvalParams.getNumOfExceptions</SPAN>() + 1);</FONT></SPAN></FONT></DIV>
<DIV><FONT size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT><SPAN class=GramE><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">end</SPAN></FONT></SPAN></DIV>
<DIV><SPAN class=GramE><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'"></SPAN></FONT></SPAN> </DIV>
<DIV><SPAN class=GramE><FONT face=Arial size=2><SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: 'Courier New'">Any ideas</SPAN></FONT></SPAN><FONT color=navy size=2><SPAN style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT></DIV></body></html>