[rules-users] Can I check if a collection contains one, and only one item of another collection

David Cracauer dcracauer at earthlink.net
Sat Aug 23 09:23:26 EDT 2008


Hi,
I'm getting stuck on this and I'm hoping someone can help.. 
I need to be able to check that a collection contains one, and only one item
from another collection.

Ideally, I would do something like this:

 a:Answer(responses contains one of ("a","b","c"));

Is there a way do do this without resorting to evals or predicate
expressions? (drools 4.07)

Thanks,
Dave



-- 
View this message in context: http://www.nabble.com/Can-I-check-if-a-collection-contains-one%2C-and-only-one-item-of-another-collection-tp19114896p19114896.html
Sent from the drools - user mailing list archive at Nabble.com.




More information about the rules-users mailing list