I am working in ilog rules. I want to validate a field which is inside an array list of objects.
Like,
class Company {
List<Employee> employee;
}
class Employee {
String Name;
int age;
}
Here I want to validate the age field is not negative. I have company object passed as input parameter,
definitions
set 'Company' to 'The Company to validate' ;
set 'Employees' to employee working for 'Company'
Now how can I iterate employee which is an arraylist and check for age validations.