[rules-users] drl execution problem

Michael Anstis michael.anstis at gmail.com
Thu Mar 29 07:50:19 EDT 2012


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 at 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.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20120329/cbda15ea/attachment.html 


More information about the rules-users mailing list