[rules-users] Initialize Global

Kris Verlaenen kris.verlaenen at cs.kuleuven.be
Mon Oct 29 20:37:07 EDT 2007


> That initialized my global but the rule still runs every execution.  Can I
> disable the rule after the first execution?
What do you mean by "every execution".  A rule should only be executed once, 
unless it gets reactivated (which should not be the case in this situation).

> I would like to use (if (objectList==null)).  My list is not immutable. 
> Can
> I make a similar rule for the LHS?
You can test whether the global is null using eval( objectList == null )  in 
the LHS of the rule.

Kris 




More information about the rules-users mailing list