[jboss-jira] [JBoss JIRA] (DROOLS-321) Unnecessary update using the TMS in EQUALITY mode

Mario Fusco (JIRA) issues at jboss.org
Mon Dec 16 06:16:36 EST 2013


     [ https://issues.jboss.org/browse/DROOLS-321?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco resolved DROOLS-321.
--------------------------------

    Fix Version/s: 6.0.1.Final
       Resolution: Done

    
> 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: Mario Fusco
>             Fix For: 6.0.1.Final
>
>
> 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