Well, you wrote that pids is a list, but the error message says it's an array. Inside an eval() it's still Java.
-W On 4 January 2012 09:35, gg <[email protected]> wrote: > I did this : > > s: String() from cids > eval(pids.contains(s)) > > but its throwing an error : > > Rule Compilation error : [Rule name='Hello World'] > com/sample/Rule_Hello_World_0.java (8:509) : Cannot invoke > contains(String) > on the array type String[] > > -- > View this message in context: > http://drools.46999.n3.nabble.com/list-conatins-objects-from-another-list-tp3631295p3631350.html > Sent from the Drools: User forum mailing list archive at Nabble.com. > _______________________________________________ > 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
