Re: how to generate BPEL process without GUI designer
Hello,
I have created the bpelmodel by -
File bpelFile = new File("C:/temp_videos/echo_1.bpel");
URI bpelURI = new URI("file:///C:/temp_videos/echo_1.bpel");
FileInputStream fis = new FileInputStream(bpelFile);
javax.swing.text.Document myDocument=myloadSwingDocument(fis);
Lookup lookup = Lookups.fixed(new Object[]{bpelFile, myDocument,
myCatalogModel.getDefault(),});
ModelSource source = new ModelSource(lookup,true);
BpelModelFactory factory =
Lookup.getDefault().lookup(BpelModelFactory.class);
BpelModel model = factory.getModel (source);
Process myProcess = model.getProcess();
myProcess.setName("NewProcess") ;
How can I save the modified bpelmodel to the file. Any suggestion is welcomed.
regards
Rajesh