Michael,

I am looking for the most effective way to send a collection into Drools and
have it execute the rules over all the elements in that collection.  In the
"Conway's Game Of Life", it appears to do this, but iterating over the
collection and asserting those into memory before firing the rules.  It
would be nice [and maybe you can, but I have not seen it] if I could send in
the collection object and all rules would fire on all objects in the
collection.

The example for me that comes to mind is trying to determine if a User is in
a given role.  I have a collection of roles that the user is a part of and I
want to determine if they are a member of one specific one [Admin for
example] and set a boolean flag that says yes they are.

Ron


On 3/20/06, Michael Neale <[EMAIL PROTECTED]> wrote:
>
> Not sure what you mean. Do you mean the fact that it iterates through a
> collection and asserts the objects one at a time?
>
>  On 3/16/06, Ronald R. DiFrango <[EMAIL PROTECTED]> wrote:
>
> > All,
>
> Is the "Conway's Game Of Life Example" the best or only example of how to
> process a list of objects that you need to evaluate?
>
> http://drools.org/Conway%27s+Game+Of+Life+Example <
> http://drools.org/Conway%2527s+Game+Of+Life+Example>
>
> Thanks in advance,
>
> Ron
>
>
>
>

Reply via email to