[rules-users] Reading a ArrayList object in a rule .drl

Michael Anstis michael.anstis at gmail.com
Thu May 5 14:44:29 EDT 2011


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 at 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 at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110505/3899ddbc/attachment.html 


More information about the rules-users mailing list