|
|
Re: Create BPEL Process from java program [message #658243 is a reply to message #658169] |
Mon, 07 March 2011 14:57 |
|
Hi Kamrad,
The BPEL EMF model that's used in the editor is not really meant to be used to serialized/deserialize XML. The way the editor does its serialization is through a DOM that is used as the model for the "Source" tab in the editor. Take a look at the BPELWriter class to see how the BPEL XML is created - there are methods for each of the BPEL activities and other stuff which create the DOM elements.
You might be able to adapt the writer for your own use. I think what you'd need to do is first construct the EMF model for the BPEL process that you want, then create a DOM and use the BPELWriter to serialize into that DOM (don't forget to add the appropriate namespaces!)
If you do get this to work, please let me know - I think it would be really useful to add this to the BPEL Designer as a public API.
Thanks in advance!
Bob
|
|
|
|
Re: Create BPEL Process from java program [message #659887 is a reply to message #659808] |
Tue, 15 March 2011 21:59 |
|
Well, yes...as long as the output is valid BPEL and all of the imports are resolved you should be able to deploy the whole lot. You can either zip the entire bpel content folder and copy it to your Ode runtime directory, or you can recreate the folder and files structure there.
You will also need a deployment descriptor (deploy.xml) which defines the processes and their interfaces. All of this is in org.eclipse.bpel.apache.ode.deloy.model and .ui
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04115 seconds