[rules-users] Golfer Example: Why will the example get two equal result ?

Dr. Gernot Starke gs at gernotstarke.de
Fri Aug 3 01:21:20 EDT 2007


a half answer: I behaved the same in 3.0.6...

imho it's the "unknown" variables that get instantiated differently...
but I did not investigate much further...

suggestion: ignore - make your own rules behave better :-)
Gernot


>
>
> When I test the Golfer example in Drools4.0 environment. I found the rule
> was matched twice but print same result. I try to override equals() and
> hashCode() method in Golfer Object, but no change happen. Who can tell me
> the reason that happened?
>
>
>
> Thanks.
>
> Jason Wang
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>


-- 
Dr. Gernot Starke
Willi-Lauf Allee 43, D-50858 Köln
Tel. +49 (0) 177 - 728 2570
Mail: gs at gernotstarke.de
http://www.gernotstarke.de
http://www.arc42.de



More information about the rules-users mailing list