[rules-users] Rule for Collection

Ashish Soni learnspring at gmail.com
Wed Aug 26 12:22:55 EDT 2009


Hi All ,

Can someone please help how can i write a rule for below condition -

I have Student object which contains List of Courses

public Class Person
{
   private List<Course> courseList;
}

public Class Course
{
   private String name;
   private int duration;
}

Now lets say the list of course inside person object contains 10 course
objects and if one of the course object contain name =="XYZ" and another
contain a duration = 20 hours then how i can write a rule for this.


Thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090826/f74f64ca/attachment.html 


More information about the rules-users mailing list