[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2273) setting the Conflictresolver when you get a KnowledgeBase using KnowledgeAgent
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Sat Apr 23 21:29:18 EDT 2011
[ https://issues.jboss.org/browse/JBRULES-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12597701#comment-12597701 ]
Mark Proctor commented on JBRULES-2273:
---------------------------------------
As the javadocs say for KnowledgeBaseConfiguration:
* <p>
* The follow properties have not yet been migrated from the Drools 4.0 api:
* <ul>
* <li>drools.executorService = <qualified class name></li>
* <li>drools.conflictResolver = <qualified class name></li>
* <li>drools.ruleBaseUpdateHandler = <qualified class name></li>
* </ul>
* </p>
At the moment I have no plans to expose this as a stable feature in 5.0.
> setting the Conflictresolver when you get a KnowledgeBase using KnowledgeAgent
> ------------------------------------------------------------------------------
>
> Key: JBRULES-2273
> URL: https://issues.jboss.org/browse/JBRULES-2273
> Project: Drools
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: drools-core (expert)
> Affects Versions: 5.0.1.FINAL
> Reporter: Edgardo Carena
> Assignee: Mark Proctor
> Priority: Critical
> Labels: agent, conflict, resolver
>
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list