Trace serialization was having some trouble in some important cases:
When the abstract syntax metamodel did not include the eoperations, leaving dangling cross references from the MSEs dynamically created during the execution
The trace constructor was mistakenly creating links from trace elements to dynamic transient objects, also leaving dangling cross references
This PR make sure to serialize created eoperations in the MSE model (1), and fixes the trace constructor to avoid refs to dynamic objects (2)
With this PR, we should now be able to serialize traces from MiniJava models.
Changes
Trace metamodel change: new containement EReference named orphanOperations from MSEModel to EOperation
Engine change: when creating an EOperation, do not store it in the EClass, and instead store it in the temporary MSEModel
Trace constructor change: only set originalObject reference when the object is not dynamic, and add EOperations in the final MDEModel
Description
Trace serialization was having some trouble in some important cases:
This PR make sure to serialize created eoperations in the MSE model (1), and fixes the trace constructor to avoid refs to dynamic objects (2)
With this PR, we should now be able to serialize traces from MiniJava models.
Changes
orphanOperations
from MSEModel to EOperationoriginalObject
reference when the object is not dynamic, and add EOperations in the final MDEModel