[rules-users] Dealing with Complex objects in Drools
Mark Proctor
mproctor at codehaus.org
Wed Jan 2 06:52:38 EST 2008
JimmyM wrote:
> Will the 'from' CE iterate over each object within objList2?
>
> for example
>
> when
> $o1 : Object1()
> $o2 : Object2(objList.field1 != null) from $o1.object2
> then
> #do something
> end
>
make sure the 'from' expression returns a collection, then this will do
what you want.
> or will i need to flatten out each list and deal with each object
> separately?
>
>
> Mark Proctor wrote:
>
>> use the 'from' keyword to work with collections, or flatten your objects.
>>
>> Mark
>>
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080102/19bd9de8/attachment.html
More information about the rules-users
mailing list