1 of 1 people found this helpful
What you can do is, mount the defaultPackage repository as a network drive into your windows explorer.
This is where the process definition bpmn2 files go.
From there, this discussion might help you:
I did not have the time to do a complete manual roundtrip. If you manage to get through with it, it would be nice if you could share it here.
I hope this helps.
You can use the Guvnor REST api. Can you describe what you need to do in more details so we can help maybe show sample code?
thanks for the response but after some amount of searching I came across this framework called Sardine.
It was very easy to use and did exactly what i wanted.
Sardine sardine = SardineFactory.begin("admin","admin");
byte data = FileUtils.readFileToByteArray(new File("/home/test/test-v4tov5/CustomBPMN2-ServiceProcess.bpmn2"));
it also works for any type of files (images, doc, xml, etc).
A part from the REST API why isn't there a builtin API int he JBPM framework?
Using a webdav client is fine. The Drools Eclipse plugin (Guvnor perspective) also uses the Guvnor WebDav servlet. Just note that there is not much if at all development going into Guvnor's webdav servlet so you will most likely not see many new features or any existing bugs fixed quickly, whereas Guvnor's rest api is being worked on very actively.
>> A part from the REST API why isn't there a builtin API int he JBPM framework? <<
I don't really get your question. jBPM-console uses the Guvnor rest api to communicate with Guvnor, it is just simple Java code. Not sure we need a custom api just to do simple java.net stuff