Details
-
Bug
-
Resolution: Done
-
Major
-
5.5.0.Final, 6.0.0.Beta2
-
None
Description
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:
RuleBaseConfiguration rbc = new RuleBaseConfiguration();
rbc.setConflictResolver(SalienceConflictResolver.getInstance());
RuleBaseFactory.newRuleBase(rbc);
When the rule base is created without setting the conflict resolution strategy to Salience the execution order of the rules is correct.