In our ILOG rules irl files we have numerous occurrences of setting a variable from a collection and setting another variable from the collection which doesn't equal the first object
student1: com.company.bom.Student() in all_students;
student2: com.company.bom.Student(!(?this.equals(student2))) in all_students;
In ILOG do these lines just return the first and second object in the collection?
Would be the following be the best way to do the same in Drools within a drl rule file?
student1: com.company.bom.Student() from all_students.get(0);
student2: com.company.bom.Student() from all_students.get(1);