Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » EMFModelAdapter has and strange behaviour with UML models
EMFModelAdapter has and strange behaviour with UML models [message #897794] Wed, 25 July 2012 09:10
Miguel Llàcer San Fernando is currently offline Miguel Llàcer San FernandoFriend
Messages: 63
Registered: July 2009
Member
Hi,

we have a set of ATL transformations where we maintain the xmiIDs of the generated models. After migrating the code to use the ATL emfvm, we have detected that xmiIDs are regenerated.

Debugging on the emfvm, we have realized that the EMFExtractor.class executes the recreateResourceIfNeeded() method where new models are recreated and so the xmiIDs are regenerated.
To solve part of our problem, we don't use the EMFExtractor and generated models are saved manually. But doing that, UML models are saved without xmiIDs... Confused

Debugging more, we have seen that the EMFModelAdapter.class executes the finalizeModels() method where new models are modified if exists duplicated elements in the root of the resource.
Our transformations generates distinct models that conforms to distinct metamodels (UML, Ecoretools database, AMW Traceability, Sketcher, UIM) but only the UML generated models are modified in the finalizeModels() method because they reach to this method with strange structure where all the elements of the model are duplicated in the root of the resource.

Could be that the UML models are specially treated with the ATL emfvm ?¿?

Thanks a lot
Previous Topic:lazy rules with returning sequence
Next Topic:XMI IDs in external program
Goto Forum:
  


Current Time: Thu Apr 25 22:36:34 GMT 2024

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

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

Back to the top