|Transforming from BPMN2 using the ATLauncher [message #1745060]
||Tue, 04 October 2016 16:49
| Begona Martinez
Registered: May 2013
We have written an ATL transformation from BPMN2 to another language. If we run this transformation using the BPMN2 metamodel URI the transformation works OK. However, when we use the BPMN2 metamodel ecore file, the transformation fails in the attribute body of the coditionExpression element:|
<conditionExpression xsi:type="bpmn2:FormalExpression" id="FormalExpression_3" body="therapy = 3D-CRT + brachytherapy"/>
The reason we need to execute the ATL transformation with the ecore file (instead of the URI) is because we need to run the transformations programatically using the ATLlauncher.
We attach the ATL launcher class we use for the transformation.
We also attach the screen captures of the two executions using the ATL plugin, in order to clarify our question. Finally, this is the error we get when we use the BPMN ecore file (the error is the same either in the ATL plugin or with the ATL launcher):
org.eclipse.emf.ecore.resource.impl.ResourceSetImpl$1DiagnosticWrappedException: org.eclipse.emf.ecore.xmi.IllegalValueException: Value 'therapy = 3D-CRT + brachytherapy' is not legal.
Is it possible this is a bug? Is there any reason for that? Apparently in both cases, we are referring to the same metamodel, but is there any difference?
Is it possible to use the URI in the ATL launcher instead of the ecore file?
Thanks a lot in advance for any help.
Begoña & Valeriu & Mar
Powered by FUDForum
. Page generated in 0.02172 seconds