Alessandro Dionisi [https://community.jboss.org/people/cecchisandrone] created the discussion
"Re: How can I take process definitions from Guvnor with jBPM5 API?" To view the discussion, visit: https://community.jboss.org/message/760636#760636 -------------------------------------------------------------- Thanks liliana, but I can't execute successfully your code (*unable to parse ChangeSet error*). I've tried to modify your code as follows: KnowledgeAgentConfiguration aconf = KnowledgeAgentFactory.newKnowledgeAgentConfiguration(); KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent("testKAgent", aconf); String fileName = " http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/plx/LATEST/ChangeSet.xml http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/plx/LATEST/ChangeSet.xml"; kagent.applyChangeSet(ResourceFactory.newUrlResource(fileName)); KnowledgeBase kbase2 = kagent.getKnowledgeBase(); StatefulKnowledgeSession ksession2 = kbase2.newStatefulKnowledgeSession(); ProcessInstance processInstance = ksession2.startProcess("plx.SimpleProcess"); But I obtain: *Server returned HTTP response code: 401 for URL: http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/plx/LATEST/ChangeSet.xml http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/plx/LATEST/ChangeSet.xml* Did you remove authentication from Guvnor? -------------------------------------------------------------- Reply to this message by going to Community [https://community.jboss.org/message/760636#760636] Start a new discussion in jBPM at Community [https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]
_______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
