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

Michael Zimmermann list at incunabulum.de
Tue Nov 27 10:09:34 EST 2007


Hi Darko,

> Global java.util.List myList
> 
> rule "SomeOtherRule"
> when
>     myList(size==2);
> then
> ...
> end

Sorry, won't work. Unable to resolve object type 'diameters'. What works
though is:

rule "abc"
when
 eval (diameters.size() == 2)
then
 ...
end

cu, Michael






More information about the rules-users mailing list