[rules-users] How does no-loop work?

Srinath Perera hperera at cs.indiana.edu
Mon Jan 21 20:37:35 EST 2008


Hi All;

I was trying to use no-loop to avoid rule being triggered recursively. 
However for following rule, when there are more than one one object of 
type DataProduct, no-loop attribute has no effect.

rule "Collect"
     no-loop true
     when
         q: Query();
         buffer : java.util.Vector();
         d: DataProduct();
     then
         q.addDataProduct(d);
         update(q);
end

But on the other hand when there are only one object of type DataProduct 
in the system, the no-loop works. Is this expected behavior or have I 
uncovered a bug?

Thanks
Srinath




More information about the rules-users mailing list