Hmm, Right. Size is not a property (getSize), thus (size==2) does not work.
I'm not sure,but myList(size()==2) could work though. Does it ? darko On 27/11/2007 15:09, Michael Zimmermann wrote: > 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 > > > > _______________________________________________ > rules-users mailing list > [email protected] > https://lists.jboss.org/mailman/listinfo/rules-users > > > _______________________________________________ rules-users mailing list [email protected] https://lists.jboss.org/mailman/listinfo/rules-users
