[jboss-user] [jBPM] - how to read the package from guvnor in java

Arun Selva do-not-reply at jboss.com
Wed Aug 8 07:07:50 EDT 2012

Arun Selva [https://community.jboss.org/people/arselv] created the discussion

"how to read the package from guvnor in java"

To view the discussion, visit: https://community.jboss.org/message/752562#752562

I have desgined a workflow using designer in guvnor and built it
Now i have to use the workflow in my war.
Whats the url to get that workflow from guvnor.
I tried the below code.But its not fetching me the workflow.

KnowledgeAgent kagent = KnowledgeAgentFactory.newKnowledgeAgent( "MyAgent" );
URL url=new URL(" http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav/packages/defaultPackage/first.bpmn2 http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav/packages/defaultPackage/first.bpmn2");
kagent.applyChangeSet( ResourceFactory.newUrlResource(url ) );
KnowledgeBase kbase = kagent.getKnowledgeBase();

kindly provide an example.

Reply to this message by going to Community

Start a new discussion in jBPM at Community

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

More information about the jboss-user mailing list