-
1. Re: JBPM5 and Guvnor
tob1as Aug 25, 2011 6:25 PM (in response to dondragon2)1 of 1 people found this helpfulWhat you can do is, mount the defaultPackage repository as a network drive into your windows explorer.
http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/webdav
This is where the process definition bpmn2 files go.
From there, this discussion might help you:
http://community.jboss.org/message/621173#621173
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.
Cheers,
Tobi
-
2. Re: JBPM5 and Guvnor
tsurdilovic Aug 25, 2011 10:21 PM (in response to dondragon2)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.
-
3. Re: JBPM5 and Guvnor
eaa Aug 26, 2011 2:29 AM (in response to dondragon2)1 of 1 people found this helpfulHere you can find more information about Guvnor REST API: http://community.jboss.org/wiki/AtomPubinterfaceforGuvnor
-
4. Re: JBPM5 and Guvnor
dondragon2 Aug 26, 2011 8:55 AM (in response to eaa)Hi Guys,
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"));
sardine.put("http://localhost:8080/guvnor/org.drools.guvnor.Guvnor/webdav/packages/defaultPackage/CustomBPMN2-ServiceProcess.bpmn2", data);
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?
-
5. Re: JBPM5 and Guvnor
tsurdilovic Aug 26, 2011 9:59 AM (in response to dondragon2)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