[rules-users] property change listeners aren't working as described in the Expert Doc
Wolfgang Laun
wolfgang.laun at gmail.com
Thu Jun 20 14:54:58 EDT 2013
On 20/06/2013, abasile <alex.basile at interactivedata.com> wrote:
> 2.) Refraction - rules are looping
> Rule that listens for a property on an object also changes that property is
> being fired indefinitely
> ie:) Rule 1 - when obj.a Then modify (obj.a)
> My understanding is that the rule shouldn't fire again unless the fact
> (object's property) is modified. Maybe my assumption is wrong and the fact
> refers to the object and not a property of the object. In that case, what's
> the recommended solution?
This is to be expected and has nothing to do with "property reactive" or not.
As a countermeasure, you may
(.) add rule attribute no-loop
(.) use a constraint such as a != x when the rule modifies by setA(x).
-W
More information about the rules-users
mailing list