Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » Problems with kdm in an ATL transformation(Problems with kdm in an ATL transformation)
Problems with kdm in an ATL transformation [message #930438] Tue, 02 October 2012 06:11 Go to next message
Feliu Trias is currently offline Feliu Trias
Messages: 4
Registered: July 2012
Junior Member
Hi everyone,

I am trying to implement an ATL transformation between KDM and another metamodel. This is as simple as:

module kdm2cms;
create cmscm : CMSCM from kdm : KDM;
rule kdm2cms {
from
kdm : KDM!Segment

to
cmscm : CMSCM!CMSModel
}

I try to transform the Segment element from the Inventory Model to a CMSModel element (an element of our metamodel).
When I launch the transformation any error appears in the console or in the error log, but the file generated is empty.

Otherwise, I have implemented a transformation transforming on the contrary (from a CMSModel to a Segment) and it works.

If any of you can help I'd be grateful.

Feliu
Re: Problems with kdm in an ATL transformation [message #953907 is a reply to message #930438] Mon, 22 October 2012 12:26 Go to previous messageGo to next message
Hugo Bruneliere is currently offline Hugo Bruneliere
Messages: 600
Registered: July 2009
Senior Member
Hello,

It seems that this is more a model-to-model transformation issue not directly related to the MoDisco KDM metamodel implementation.
You should be able to find a correct way to write your ATL transformation (maybe your input KDM model was simply not containing any KDM!Segment element).

Best regards,

Hugo


------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod research team (Inria, EMN & LINA)
Ecole des Mines de Nantes
Nantes - France
------------------------------------------
Re: Problems with kdm in an ATL transformation [message #964109 is a reply to message #953907] Tue, 30 October 2012 05:04 Go to previous message
Feliu Trias is currently offline Feliu Trias
Messages: 4
Registered: July 2012
Junior Member
Good morning Hugo,

Finally, I fixed it registering a new version of KDM metamodel.

Thank you so much.
Regards,

Feliu
Previous Topic:how to get uml model from java project
Next Topic:startLine and endLine attributes
Goto Forum:
  


Current Time: Wed Jul 23 16:17:00 EDT 2014

Powered by FUDForum. Page generated in 0.01834 seconds