Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Reusing transformation rules defined on an ecore model that is being extended
[ATL] Reusing transformation rules defined on an ecore model that is being extended [message #703411] Wed, 27 July 2011 14:46
Eszter Hofmann is currently offline Eszter HofmannFriend
Messages: 16
Registered: July 2011
Junior Member

I have an ecore model C, another ecore model A which is extended by the model B. I am writing a transformation C2B with this header: "create OUT : B from IN : C;". I have several rules transforming C model elements to A model elements. I would like to put these in a module C2A and superimpose this with C2B in order to reuse these rules (since I am going to have 5 more models extending A). I used for this module this header: "create OUT : A from IN : C;".
When I am trying to use a rule in C2B from C2A I get the following error: org.eclipse.m2m.atl.engine.emfvm.VMException: Cannot find reference model A . I have added in my launcher all the 3 ecore metamodels.

Is it possible at all to have diferent output metamodels in this case? Is there a better practice to reuse my rules? I know this is not how I am supposed to use superimposition, but copying 10 rules in 5 diferent transformations is not really nice...

Previous Topic:[XTend] Couldn' t resolve type for....
Next Topic:UML to XML Transformation via qvto
Goto Forum:

Current Time: Wed Jun 20 23:22:15 GMT 2018

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

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

Back to the top