[jboss-dev-forums] [jBPM Development] - Re: How to get BPMN Process Definition xml from Guvnor repository

Tihomir Surdilovic do-not-reply at jboss.com
Thu Aug 25 21:36:53 EDT 2011


Tihomir Surdilovic [http://community.jboss.org/people/tsurdilovic] created the discussion

"Re: How to get BPMN Process Definition xml from Guvnor repository"

To view the discussion, visit: http://community.jboss.org/message/623064#623064

--------------------------------------------------------------
If you want to do this with Java code, you can use the Guvnor REST api. Example URL (GET request):
 http://localhost:8080/drools-guvnor/rest/packages/ http://localhost:8080/drools-guvnor/rest/packages/<packageName>/assets/<assetName>/source/
(substitute <packageName> and <assetName> with your concrete values. This will return you the bpmn2 (source) of your process in Guvnor. If you are using jaas auth in guvnor, you would need to use for example BASE64Encoder to encode usr/pwd and set the Authorization request property.

You can also use the Drools Eclipse plugin and use the Guvnor perspective to connect to your repository and view the sources, or you could write your own WebDav client also.

Hope this helps.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/623064#623064]

Start a new discussion in jBPM Development at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20110825/2e337a1b/attachment.html 


More information about the jboss-dev-forums mailing list