2 Replies Latest reply on Aug 3, 2011 11:14 AM by byungwoojun

    Can KnowledgeAgent add multiple Resource packages from Guvnor?

    byungwoojun Newbie

      I am using the KnowledgeAgent to get BPMN2 resources from Guvnor as follows:

       

      KnowledgeAgent kagent = KnowledgeAgentFactory
          .newKnowledgeAgent("Guvnor default");
        kagent.applyChangeSet(ResourceFactory
          .newUrlResource(:http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/PackageOne/LATEST/ChangeSet.xml");
        kagent.monitorResourceChangeEvents(false);
        KnowledgeBase kbase = kagent.getKnowledgeBase();

       

      Where the "PackageOne" is a package name that I defined in the Guvnor. I have additional packages, e.g., PackageTwo, PackageThree, so on. There is a reason I need to define multiple packages instead of one big package in Guvnor. Using the KnowledgeAgent, I'd like add all the packages. Is it possible?

       

      Thanks,

      bwj