[rules-users] Can I do a Collection contains Collection?

EdenAEL20 eden_mondragon at ml.com
Fri Feb 19 10:38:03 EST 2010


I have an object coming in which contains a collection of id's. I want to
verify these id's are in another collection. I'm looking for something like
collection is a subset of another collection. any ideas??

zips below is a collection, i want to verify that each zip is in $e1. 

rule "example"
  when
         e1: Set() from RefData.getConstantValues()
         e2: Example( zips not in $e1)
  then
       error()
-- 
View this message in context: http://n3.nabble.com/Can-I-do-a-Collection-contains-Collection-tp217546p217546.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list