Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » ATL transformation
ATL transformation [message #889817] Tue, 19 June 2012 14:35 Go to next message
zz Missing name is currently offline zz Missing name
Messages: 10
Registered: April 2011
Junior Member
Hello

I'working on a transformation using ATL from a UML model with a profile application to a UML model with another profile.
I want to transform a tagget value of a stereotype from the source profile to another tagget value in the target profile
the links between a stereotype and the stereotyped element is done by "xmi: id" attribute in the element stereotyped and base_Classifier in the stereotype

I want to retreive the "xmi: id" from the stereotyped element by this helper :

helper context UML!Component def: typeStructuredComponent() : String =
self.id ;

but an error is displayed :
org.eclipse.m2m.atl.engine.emfvm.VMException: Feature id does not exist on Component

So how can I retreive this id ?

Regards
Re: ATL transformation [message #889907 is a reply to message #889817] Wed, 20 June 2012 04:20 Go to previous message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARD
Messages: 522
Registered: July 2009
Senior Member
__xmiId__ is available but I'm not sure that's what you want.
You should use the base_Classifier reference it will take care about serializing with xmi:id for you, you can't set the reference with the xmi id yourself.
Previous Topic:Is unit testing possible for atl programs?
Next Topic:UML Testing Profile xmi error loading
Goto Forum:
  


Current Time: Thu Aug 28 05:32:00 EDT 2014

Powered by FUDForum. Page generated in 0.01529 seconds