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

EdenAEL20 eden_mondragon at ml.com
Fri Feb 19 11:31:02 EST 2010


I have considered doing a custom operator contains all too. Can't I use the
eval for this though like the example below? I haven't tried it yet.  

class SampleObject{
   List IDs;
}


rule "test"
no loop
  when 
        $h3: Set() from RefData.getIDs()
        r1: SampleObject()
        eval ( $h3.containsAll( r1.IDs) )
   then
        error()
end

-- 
View this message in context: http://n3.nabble.com/Can-I-do-a-Collection-contains-Collection-tp217546p217655.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list