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

Darko IVANCAN ivancan at gmx.de
Tue Nov 27 11:58:11 EST 2007


this.size() ?

On 27/11/2007 15:49, Michael Zimmermann wrote:
> Darko IVANCAN wrote:
>
>   
>> I'm not sure,but  myList(size()==2) could work though.
>>
>> Does it ?
>>     
>
> No, doesn't work.
>
> My interpreation so far:
> a) globals are only possible in eval() statements
> b) access to methods of global variables are not supported.
>
> and possibly c) only properties of globals can be accessed (not tested
> as a list has no useful property imho)
>
> Well, I can life with the eval() statements but think they are slightly
> inconvenient and make the code less explicit and less readable.
>
> cu, Michael
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
>   



More information about the rules-users mailing list