Uploaded image for project: 'JBRULES'
  1. JBRULES
  2. JBRULES-2273

setting the Conflictresolver when you get a KnowledgeBase using KnowledgeAgent

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    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.

      Attachments

        Activity

          People

            mproctor@redhat.com Mark Proctor
            edddh Edgardo Carena (Inactive)
            Archiver:
            rhn-support-ceverson Clark Everson

            Dates

              Created:
              Updated:
              Resolved:
              Archived:

              PagerDuty