5 Replies Latest reply on Dec 30, 2013 4:53 PM by Jay Guidos

    JBPM 6 loading KieBase from workbench?

    John Joel Boss Newbie

      Hello guys,

       

      Coming from jbpm 5.4, I can do something like

       

      String url = "http://localhost:8081/drools-guvnor/org.drools.guvnor.Guvnor/package/com.test.package/test";   
      UrlResource resource = (UrlResource) ResourceFactory.newUrlResource(url);
      resource.setBasicAuthentication("enabled");
      resource.setUsername("admin");
      resource.setPassword("admin");      
          
      KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
      kbuilder.add(resource, ResourceType.PKG); //Resource.PKG
      kbase= kbuilder.newKnowledgeBase();
      

       

      where the KnowledgeBase is loaded directly from a guvnor package.

       

      Can I do something like this in JBPM6? I can't seem to find it in the docs, any guides guys?

       

      Thanks,

      John