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.