rule "eat pizzas"
when
    $c : Customer()
    $p : Pizza() from $c.getPizzas()
then
    $c.consume($p);
end

With kind regards,

Mike

On 5 May 2011 18:04, andrestrindade <andrestrindade@gmail.com> wrote:
Hey guys. I want to make a rule to manipulate a ArrayList.
This List is inside a OBJECT.

So I have a object, with a list of objects.

Customer -> Pizza(List of PizzaPOJO) -> PizzaPOJO ->
How to change attributes inside the "PizzaPOJO" ?
I need to iterate it.

THANKS :D

--
View this message in context: http://drools.46999.n3.nabble.com/Reading-a-ArrayList-object-in-a-rule-drl-tp2904227p2904227.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users