Unexpected modification of the input model [message #1849300] |
Wed, 12 January 2022 09:06 |
Yves BERNARD Messages: 174 Registered: July 2014 |
Senior Member |
|
|
Hello,
I'm facing a strange behavior of an EGL code.
The purpose is to generate a textual representation of a model described by an ecore metamodel and stored in a XMI file.
The ecore metamodel results from the translation of an UML model than contains classes and associations with redefined properties. Since ecore does not support them, redefining properties are considered derived ones and managed as such by the implementation of that metamodel.
The point is that when the EGL code is executed on a XMI file, this file is modified.
Basically, some of the redefined properties that was visible in the file before the execution have disappeared. It looks like they are only those that are not composite, i.e. that are not used as containers. Instead they are replaced by their redefining properties, or by nothing. It's possible that the latter case results from the fact that the implementation is unable to compute the derived value, whatever the reason. But this is not the point here.
Questions are:
1. It is not expected that the input model is modified by that script so, how can it happen? Could it be linked to some options linked to the definition of the input model in the launcher configuration?
2. Do you have any idea about what could trigger those modifications that I have never observed before, including with UML metamodel that has plenty of such property redefinitions?
Thanks.
Yves
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03491 seconds