Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » ATL transformation
ATL transformation [message #889817] Tue, 19 June 2012 18:35 Go to next message
zz lalou is currently offline zz lalouFriend
Messages: 17
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 08:20 Go to previous message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
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: Fri Apr 19 23:49:04 GMT 2024

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

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

Back to the top