Do you mean:

rule "There is at least one set of marbles"
when
   exists( Marble( color == "red" ) and
               Marble( color == "blue" ) and
               Marble( color == "yellow" )
             )
then
   //  there is at least one set of marbles
end
 
   []s
   Edson


2008/5/27 Jayne <jayne2520@gmail.com>:
Hi All,

Newbie terminology question: what do you call it when you want to assert the state of several objects in working memory?

Example: your working memory is full of marble objects. I know how to test each marble for color, but if there is a red marble, a blue marble and a yellow marble then I have enough marbles for a set. How can test the state of the working memory? Is this possible with Drools?

Thanks,
   Jayne2520

_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users




--
Edson Tirelli
JBoss Drools Core Development
Office: +55 11 3529-6000
Mobile: +55 11 9287-5646
JBoss, a division of Red Hat @ www.jboss.com