|[ATL] Reusing transformation rules defined on an ecore model that is being extended [message #703411]
||Wed, 27 July 2011 14:46
| Eszter Hofmann
Registered: July 2011
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...
Powered by FUDForum
. Page generated in 0.01659 seconds