Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Transforming from BPMN2 using the ATLauncher(Different results when using the metamodel's URI and the metamodel ecore file)
Transforming from BPMN2 using the ATLauncher [message #1745060] Tue, 04 October 2016 16:49 Go to next message
Begona Martinez is currently offline Begona MartinezFriend
Messages: 5
Registered: May 2013
Junior Member
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
Re: Transforming from BPMN2 using the ATLauncher [message #1745293 is a reply to message #1745060] Fri, 07 October 2016 10:53 Go to previous message
Sven L. is currently offline Sven L.Friend
Messages: 16
Registered: May 2012
Junior Member
Sounds to me as if there are differences in both metamodels. Otherwise the transformation would not behave differently.
I don't know where you got both metamodels from, but after a quick google search this is the BPMN2 I found:

An here it says:

<eClassifiers xsi:type="ecore:EClass" name="FormalExpression" eSuperTypes="#//Expression">
    <eStructuralFeatures xsi:type="ecore:EReference" name="body" ordered="false" lowerBound="1"

that the body of the expression is a reference to another element. In the code you posted, the value of body is a String, therefore the IllegalValueException.
Previous Topic:Java Metamodel - transformation model to model
Next Topic:creating a chain of transformation without intermediate file serialization
Goto Forum:

Current Time: Sun Oct 21 21:32:31 GMT 2018

Powered by FUDForum. Page generated in 0.02572 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top