[jboss-user] [jBPM] - Re: How can I take process definitions from Guvnor with jBPM5 API?

Alessandro Dionisi do-not-reply at jboss.com
Thu Sep 20 10:33:24 EDT 2012


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]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120920/48fd5f4a/attachment-0001.html 


More information about the jboss-user mailing list