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

Mario Fusco (JIRA) jira-events at lists.jboss.org
Tue Jul 9 11:48:21 EDT 2013


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

Mario Fusco resolved DROOLS-159.
--------------------------------

    Fix Version/s: 5.5.1.Final
                   6.0.0.CR1
       Resolution: Done

    
> 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: 5.5.0.Final, 6.0.0.Beta2
>         Environment: Windows 7, JDK 1.6.26
>            Reporter: Andreas Volz
>            Assignee: Mario Fusco
>              Labels: conflictResolver, salience
>             Fix For: 5.5.1.Final, 6.0.0.CR1
>
>         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