You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bpelunde...@googlegroups.com
Have anyone managed to do this task .. I am
trying to do the same to dynamically create a bpel process and deploy
based on some inputs.. I tried the code mentioned here (after importing a lot of
jar files from eclipse plugins folder) but
with :
rSet.getResourceFactoryRegistry().getExtensionToFactoryMap()
.put("bpel", new BPELResourceFactoryImpl());
instead of "xml" .....
and I am receiving the following exception:
java.lang.IllegalStateException: INamespaceMap cannot be attached to an eObject
at org.eclipse.bpel.model.util.BPELUtils.getNamespaceMap(BPELUtils.java:271)
at org.eclipse.bpel.model.resource.BPELResourceImpl.doSave(BPELResourceImpl.java:101)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:1417)
at org.eclipse.emf.ecore.resource.impl.ResourceImpl.save(ResourceImpl.java:986)
at BPELCreator.createBPEL(BPELCreator.java:34)
Do you know how to solve this problem?? And if in the first sense, the
org.eclipse.bpel.model API can be used programmatically to generate
.bpel files??
Areeg Samir
unread,
May 8, 2013, 11:07:09 PM5/8/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
Also you can try this code by Rajesh : 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") ;
Please tell me if this help you. ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Touhami Ben Aissa
unread,
Apr 8, 2014, 1:42:29 PM4/8/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Sign in to report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to bpelunde...@googlegroups.com
Hi, I'm looking for a solution to generate Java class from a BPEL process and I read that I can use BPEL2JAVA but I don't know how to use it , so if any one can help me I'll be gratefull.