[jboss-jira] [JBoss JIRA] Commented: (JBRULES-2273) setting the Conflictresolver when you get a KnowledgeBase using KnowledgeAgent

Esteban Aliverti (JIRA) jira-events at lists.jboss.org
Mon Jun 14 21:18:46 EDT 2010


    [ https://jira.jboss.org/browse/JBRULES-2273?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12535669#action_12535669 ] 

Esteban Aliverti commented on JBRULES-2273:
-------------------------------------------

You could create your KnowledgeAgent using the kbase you configured. KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("test agent", kbase);

> setting the Conflictresolver when you get a KnowledgeBase using KnowledgeAgent
> ------------------------------------------------------------------------------
>
>                 Key: JBRULES-2273
>                 URL: https://jira.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
>
> 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.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list