[rules-users] list conatins objects from another list
Wolfgang Laun
wolfgang.laun at gmail.com
Wed Jan 4 03:26:34 EST 2012
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 at 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-tp3631295p3631295.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120104/29f92335/attachment.html
More information about the rules-users
mailing list