[jboss-jira] [JBoss JIRA] (DROOLS-159) Wrong execution order when explicitly setting SalienceConflictResolver

Andreas Volz (JIRA) jira-events at lists.jboss.org
Tue Jun 4 09:15:55 EDT 2013


Andreas Volz created DROOLS-159:
-----------------------------------

             Summary: Wrong execution order when explicitly setting SalienceConflictResolver
                 Key: DROOLS-159
                 URL: https://issues.jboss.org/browse/DROOLS-159
             Project: Drools
          Issue Type: Bug
      Security Level: Public (Everyone can see)
    Affects Versions: 6.0.0.Beta2, 5.5.0.Final
         Environment: Windows 7, JDK 1.6.26
            Reporter: Andreas Volz
            Assignee: Mark Proctor
         Attachments: wrong-firing-order.zip

When setting the conflict resolution strategy to Salience the execution order of the rules is incorrect: the rule with the lowest salience value is fired first.
The Salience conflict resolution strategy is set by defining it in the RuleBaseConfiguration:
{code}RuleBaseConfiguration rbc = new RuleBaseConfiguration();
rbc.setConflictResolver(SalienceConflictResolver.getInstance());
RuleBaseFactory.newRuleBase(rbc);{code}

When the rule base is created without setting the conflict resolution strategy to Salience the execution order of the rules is correct.



--
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