Details
-
Feature Request
-
Resolution: Won't Do
-
Critical
-
None
-
5.0.1.FINAL
Description
a feature or at least a work-around to set a specific ConflictResolver when you set up a KnowledgeBase using the KnowledgeAgentFactory and a ResourceFactory.
Currently your apidocs (http://downloads.jboss.com/drools/docs/5.0.1.26597.FINAL/apidocs/org/drools/KnowledgeBaseConfiguration.html) state:
"The follow properties have not yet been migrated from the Drools 4.0 api:
- drools.executorService = <qualified class name>
- drools.conflictResolver = <qualified class name>
- drools.ruleBaseUpdateHandler = <qualified class name>"
The only known work-around is to set up a RuleBaseConfiguration in this way:
conf = new RuleBaseConfiguration();
conf.setConflictResolver(new FifoConflictResolver());
and then use it to get a KnowledgeBase using KnowledgeBaseFactory.newKnowledgeBase(conf), however this cannot be applied when you are using the KnowledgeAgentFactory.