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.
On 29 March 2012 12:43, arup <arup4u2007(a)gmail.com> wrote:
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...
Sent from the Drools: User forum mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users