[rules-users] Globals in LHS of a rule?

Michael Zimmermann list at incunabulum.de
Tue Nov 27 09:40:47 EST 2007


Hi there,

according to the online documentation globals are supported in the LHS
of a rule, yet requires a bit of care to use there.

But how do I use globals in the LHS? Is there any option to access a
globals variable directly like:

globals List myList

rule "SomeRule"
when
  myList.size() == 2
then
 ...

Or can I have to use globals only in eval() statements?

cu, Michael



More information about the rules-users mailing list