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");
kagent.applyChangeSet( ResourceFactory.newUrlResource(url ) );
KnowledgeBase kbase = kagent.getKnowledgeBase();
kindly provide an example.