[jboss-user] [jBPM] - Re: How can I take process definitions from Guvnor with jBPM5 API?
Zahid Ahmed
do-not-reply at jboss.com
Mon Apr 15 00:54:05 EDT 2013
Zahid Ahmed [https://community.jboss.org/people/ahmedza] 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/808225#808225
--------------------------------------------------------------
>>>>>>>>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?
You can either remove authentication from your guvnor or pass authentication when you call applyChangeSet(URL url). I am adding the code below.
|
|
| UrlResource urlResource = (UrlResource)ResourceFactory.newUrlResource("http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/plx/LATEST/ChangeSet.xml" ); |
|
|
| urlResource.setBasicAuthentication("enabled"); |
|
|
| urlResource.setUsername("admin"); |
|
|
| urlResource.setPassword("admin"); |
|
|
| kagent.applyChangeSet( urlResource ); |
So here I am using applyChangeSet(URL url) instead of applyChangeSet(String filePath);
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/808225#808225]
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/20130415/4adb41be/attachment.html
More information about the jboss-user
mailing list