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

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to