[rules-users] getFactHandle() problem
Guardian
d.h.j. at gmx.de
Tue Dec 18 05:21:32 EST 2007
Hi all,
i want to use the getFactHandle(obj) method to retrieve a previously
inserted fact by providing an equivalent object as an argument. The
equivalent object is a new object, i.e. it has not the same memory address.
Therefore i have overwritten the equals() and hashcode() methods. I also
tried to set the assertion-mode for the rulebase to equality-mode. The
problem is if i try to get the factHandle for an object that is loaded from
the database the getFactHandle() methode returns null. The method does not
find the factHandle for this object.
What´s the problem?
Has this something to deal with the problem in JIRA-1308
(http://jira.jboss.com/jira/browse/JBRULES-1308)?
Thanks,
Dennis Jansen
More information about the rules-users
mailing list