[rules-users] Drools' use of hashCode

Wolfgang Laun wolfgang.laun at gmail.com
Tue Jun 21 13:34:53 EDT 2011


Updating a fact does not affect any other fact containing a reference to
that updated fact. Thus, father == $father isn't changed.

If, however, the Child object changed via the Father method were a fact, an
update() of that Child fact would usually be required.

-W

On 21 June 2011 16:02, M. H. <hugues_81 at hotmail.com> wrote:

> Ok Thanks for your answer.
>
> I just looked more closely, and actually it looks like what I was doing
> just
> can't work this way: when I update the father in rule 1, then I can't join
> it with its GdFather anymore without updating it too, am I right?
> Or I would have to use eval(father==$father) instead of simply
> father==$father which uses equals() and hashCode(), but then I'll lose all
> the performance?
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/rules-users-Drools-use-of-hashCode-tp3090455p3090757.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/20110621/06216197/attachment.html 


More information about the rules-users mailing list