[jboss-jira] [JBoss JIRA] (DROOLS-321) Unnecessary update using the TMS in EQUALITY mode
Mario Fusco (JIRA)
jira-events at lists.jboss.org
Wed Nov 6 04:02:03 EST 2013
Mario Fusco created DROOLS-321:
----------------------------------
Summary: Unnecessary update using the TMS in EQUALITY mode
Key: DROOLS-321
URL: https://issues.jboss.org/browse/DROOLS-321
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Reporter: Mario Fusco
Assignee: Mark Proctor
Having a class where some attributes are @key, but not all of them in EQUALITY mode it is possible to have a family of equivalent (by equality) facts which are not the same (by identity). The TMS will consider them equivalent, and use one of them as the "prime". When the justification for this prime fact goes away the second takes its place as prime. However if the SAME (by ID) fact was justified by two or more rules, there would be multiple entries in the list being the SAME by identity and the update would not be necessary.
This is fixable in SimpleBeliefSystem by adding the condition:
{code}&& node.getObject() != bfh.getObject(){code}
at line 79 of the delete method. However other BeliefSystems need to be checked and fixed as well.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list