|A problem with model transformations with element deletions on dependent models [message #1752842]
||Sat, 28 January 2017 12:48
| Bugra M. Yildiz
Registered: July 2014
I have experienced a problem regarding to the application of model transformations with element deletions on dependent models.
I have a graph metamodel, called SimpleGraphMetamodel(.ecore). I have another metamodel that is an extension of the graph metamodel, called SimpleGraphMetamodel_loopExtension(.ecore), to denote distinguish the loops in the related graph model.
First, I create an instance of graph metamodel, called ExampleModel_original.sgmm. This graph includes a loop. Following this, I create an instance of the extension, called ExampleModel_extension_original.sgmme, which points to the single loop.
Second, I apply a transformation to replace two nodes in the graph model with a replacement node. These two nodes are in the loop. I update the graph model; and also its extension model accordingly. If I traverse, or print the details of both models, during the transformation; everything seems fine. The problem is, once the transformation is complete, the files of the models are not consistent anymore. The extension model file refers to non-existing elements of the model file.
I have provided the minimal example for this problem. The models with "_original" are the initial models. The models with "_after_transformation" are the models after transformation. The transformation is applied with read-on-load and store-on-disposal options enabled for both models.
A minimal example is attached.
Note: It is not always easy to replicate the errors in minimal examples, this time, the minimal example reflects the problem .
Powered by FUDForum
. Page generated in 0.02428 seconds