You could do
$s: String() from cids
eval( pids.contains( $s ) )
but this would fire for every element of cids occurring in pids.
If you'd like to have a single activation if the intersection of both sets
isn't the empty set, you'll have to write a function deciding just that,
and call it:
eval( intersectionNotEmpty( cids, pids ) )
-W
On 4 January 2012 09:11, gg <gagan.gautam(a)gmail.com> wrote:
I am trying to do something like:
String(pids contains this) from cids
Where pids and cids are both lists of strings. Bascially I want to check if
list pids contains elements from list cids.
--Regards
--
View this message in context:
http://drools.46999.n3.nabble.com/list-conatins-objects-from-another-list...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users