|Running ATL transformation on UML model outside of Eclipse [message #1755019]
||Mon, 27 February 2017 01:02
| Michele Guerriero
Registered: June 2016
Hello everyone. I created an ATL transformation, EMFTVM compiled, which transforms an UML model with applied my own UML profile, into a target model, for which I have an ecore metamodel. |
So far I run the transformation using an Eclipse launch configuration. From the launch configuration panel I browse the EMF registry in order to select the URI for the input UML metamodel, which is: http://www.eclipse.org/uml2/5.0.0/UML. Then I browse my workspace in order to select my ecore file as the output metamodel. This way the transformation works correctly.
What I want to do now is to run the transformation outside of Eclipse. In order to do so, I need the ecore file for the input and output metamodel. Looking for the ecore file of the UML metamodel, I ended up with unzipping the org.eclipse.uml2.uml_5.2.2.v20161114-0827.jar file in the "plugin" folder of my Eclipse installation. The UML.ecore file is then under the "model" folder. If I open the UML.ecore file with a text editor I can see nsURI="http://www.eclipse.org/uml2/5.0.0/UML", so I suppose this file corresponds to the metamodel that I select from the EMF registry when I launch the transformation. The problem is that if I copy the UML.ecore file into my workspace and I run the transformation, this time giving for the input metamodel the path to the UML.ecore file, the transformation doesn't work. In particular it raises the following error:
org.eclipse.m2m.atl.emftvm.util.VMException: java.lang.UnsupportedOperationException: UML!Device::getAppliedStereotypes()
If I open the UML.ecore file using the Sample Ecore Model Editor I can see that the getAppliedStereotypes() and all the other operations for handling stereotypes are actually available, so I cannot understand why of that error.
How can I solve this problem? Am I using the right metamodel for UML?
Thanks a lot in advance for any help and suggestion.
Powered by FUDForum
. Page generated in 0.01652 seconds