[rules-users] Dealing with Complex objects in Drools

Mark Proctor mproctor at codehaus.org
Tue Jan 1 21:00:03 EST 2008


use the 'from' keyword to work with collections, or flatten your objects.

Mark
JimmyM wrote:
> Hi,
>
> I have a number of complex business objects which contain lists of objects
> which also contain lists of objects
>
> For example:
>
> public class Object1 {
>   private List<Object2> objList;
>   private Object3 object3;
> }
>
> public class Object2 {
>   private List<Object4> objList2;
>   private Object5 object5;
> }
>
> How would I test my rules against all the objects in objList2?
>   




More information about the rules-users mailing list