|Re: executon of atl with java program :Problem with =loading BPMN resource [message #1791916 is a reply to message #1791523]
||Fri, 06 July 2018 22:01
| Gonzalo López
Registered: February 2018
Hi, I remember I had that problem but I dont remember how I solved it.|
I attach an example that works, the transformation is simple but it doesnt fail.
I have the eclipse bpmn2 modeler plugin installed.
I provide an in model "base.bpmn", note that It doesn't have all the graphical stuff, its because it makes the transformation simpler and the eclipse bpmn modeler will create it for you once you open the output model.
I also provide the transformation, the output and the java class I use to run, you will have to adapt some stuff (paths, for example).
Hope it helps
|Re: executon of atl with java program :Problem with =loading BPMN resource [message #1792471 is a reply to message #1791916]
||Wed, 18 July 2018 11:20
| José M. Álvarez-Palomo
Registered: July 2018
I am having the same problem with a BPMN model created with BPMN2Modeler, but using the model as an input for an Acceleo project in this case.
When I try to create a module file in the Acceleo project, the metamodels that the model is conformant to have to be added. The graphical interface allows to choose among the registered metamodels, including:
http ://www. omg. org/spec/BPMN/20100524/DI
http ://www. omg. org/spec/BPMN/20100524/DI-XMI
http ://www. omg. org/spec/BPMN/20100524/MODEL
http ://www. omg. org/spec/BPMN/20100524/MODEL-XMI
http ://www. omg. org/spec/DD/20100524/DC
http ://www. omg. org/spec/DD/20100524/DC-XMI
http ://www. omg. org/spec/DD/20100524/DI
http ://www. omg. org/spec/DD/20100524/DI-XMI
that were registered when BPMN2Modeler was installed.
If I try to choose the metamodels not ending in -XMI, the graphical interface does not add them to the module file and doesn't yield any error message. On the other hand, if I choose the metamodels ending in -XMI, they are added to the module file.
However, when I try to run an example (both an example of mine or the example base.bmpn provided by Gonzalo López) the execution fails with the same error message that Alijia Bouzidi gets:
Exception in thread "main" org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'definitions' is not found or is abstract. (file:/Users/jmalvarez/workspaces/photon-mod-dsl-workspace/org.eclipse.acceleo.gonzalo.lopez.sample/models/base.bpmn, 3, 541)
Caused by: org.eclipse.emf.ecore.xmi.ClassNotFoundException: Class 'definitions' is not found or is abstract. (file:/Users/jmalvarez/workspaces/photon-mod-dsl-workspace/org.eclipse.acceleo.gonzalo.lopez.sample/models/base.bpmn, 3, 541)
. . . many more lines
I have tried another approach, changing manually the metamodels in the module file, specifying the metamodels not ending in -XMI, but the same error happens.
I guess the underlying reason for the failure is the same than in Aljia Bouzidi's case with ATL.
I would like to clarify that I have chosen the above mentioned metamodels because they are referenced in the model file (see attached file) in the bpmn2:definitions element, in paticular the fields xmlns:xsi, xmlns:bpmn2, xmlns:bpmndi, xmlns:dc and xmlns:di, but I admit that I do not know if they are the metamodels that have to be referenced.
Thanks in advance for any help.
(Size: 1.83KB, Downloaded 8 times)
Powered by FUDForum
. Page generated in 0.01498 seconds