[jboss-user] [jBPM] - Re: How can I take process definitions from Guvnor with jBPM5 API?
Esteban Aliverti
do-not-reply at jboss.com
Mon Feb 13 04:36:45 EST 2012
Esteban Aliverti [https://community.jboss.org/people/eaa] 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/716124#716124
--------------------------------------------------------------
In Guvnor, each asset (rule, process, dsl, etc.) has a unique URL that you can use to retrieve its content. Guvnor also keeps a binary (compiled) version of each package containing all its assets that also has a unique URL you can use.
So, in order to get the "source code" of a process "Test" in a pacakge "TestPkg" you can use this URL: http://localhost:8080/drools-guvnor/rest/packages/Workbench/assets/Urine%20Analysis%20Aert/source http://localhost:8080/drools-guvnor/rest/packages/*TestPkg*/assets/*Test*/source
And to get the binary representation of package 'TestPkg': http://localhost:8080/drools-guvnor/rest/packages/TestPkg/binary http://localhost:8080/drools-guvnor/rest/packages/TestPkg/binary
Alternatively, you can also use the new Change-Set editor in Guvnor 5.4 to create a bundle of processes that you want to use together: http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-guvnor-docs/html_single/index.html#d0e1703 http://docs.jboss.org/drools/release/5.4.0.Beta2/drools-guvnor-docs/html_single/index.html#d0e1703
Then you need to add the definitions and/or the packages and put them into a KnowledgeBuilder. Please refer to the documentation to see how this can be done: http://docs.jboss.org/jbpm/v5.2/userguide/ch04.html#d0e655 http://docs.jboss.org/jbpm/v5.2/userguide/ch04.html#d0e655
Best Regards,
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/716124#716124]
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/20120213/c240c252/attachment-0001.html
More information about the jboss-user
mailing list