Thomas,
 
Everytime you update a fact in the WM, it is matched against all the rules. An activation is created for all such matching cases.
 
In your example whenever the fact is updated in Rule 2, two activations are created, one for Rule 1 and one for Rule 2. Rule 2 doesn't get fired because of no-loop clause.
A similar senario occurs when the fact is update in Rule1.
 
You may avoid looping by not updating the fact in the WM.
 
Pallav


From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of thomas kukofka
Sent: Wednesday, September 10, 2008 4:19 PM
To: Rules Users List
Subject: [rules-users] looping problem

Hello,

I have an urgent problem with a rule that still loops.
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.

I really would appreciate any solution.
Regards
Thomas

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.