e.g. add an ID field to Person that is incremental in value on subsequent "people"
person1: Person( $firstName1: firstName, $id : id )
person2: Person( firstName != $firstName1, id > $id )
This ensures only one match of person1 and person2 will occur, not person2 and person1.
Hi laune
Thanks for the solution. but i am confused a bit with point (b).
how to add a constraint asserting an ordering between Persons in drl. sorry
it may seem silly Qs but i'm new to drools and really want to know that. Can
u explain in detail. Thanks again for the solution.
--
View this message in context: http://drools.46999.n3.nabble.com/drl-execution-problem-tp3866929p3867432.html
Sent from the Drools: User forum mailing list archive at Nabble.com.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users