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 <[email protected]> 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
> [email protected]
> https://lists.jboss.org/mailman/listinfo/rules-users
>
_______________________________________________
rules-users mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to