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

2007-08-03 Thread Mark Proctor

Is there a bug in the golfer example? Someonew want to submit  patch?

Mark
Dr. Gernot Starke wrote:

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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users





  


___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


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

2007-08-02 Thread Dr. Gernot Starke
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@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: [EMAIL PROTECTED]
http://www.gernotstarke.de
http://www.arc42.de
___
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users


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

2007-08-02 Thread jason
 

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@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users