-
assigned issue to
Associating/Deassociating existing aspect to feature might not be reflected in aspect
When a feature is associated with an existing aspect and the concern is saved the aspect does not have/get this information. The same happens when you deassociate an aspect from a feature and save the concern.
Steps to reproduce:
- Open a concern
- Associate feature with existing aspect
- Save concern
Result:
The aspect does not have the realizes
reference set to the feature (check the serialized model for that).
Possible solution:
This is because the aspect's realizes is changed, however, the aspect is never saved.
I think when saving the concern, all associated aspects should be saved as well.
Comments (7)
-
reporter -
reporter References issue
#217: Moved saving into the handler (from the scene) and added saving all COREModels that are part of the concern. Since right now the models reference from COREConcern is not maintained properly, the models that are saved are also in addition all models that realize a feature.This leads to one limitation: If an aspect is removed from the feature, the aspect will never be saved.
→ <<cset 3b39899ac722>>
-
reporter - changed status to open
Once issue
#215is resolved, the save implementation needs to be updated to just iterate through all associatedCOREModels
of the concern and save them. That way, also aspects that were deassociated will be saved. -
reporter To fix affected models, do the following:
- Open all the .ram models in a text editor and remove the
<realizes.../>
tags (first children of<ram:Aspect.../>
). - In the concern, remove all associations on the features and associate them again.
- Save the concern.
- Open all the .ram models in a text editor and remove the
-
reporter References
#217: Updated saving to match new feature metamodel part. in CORE.→ <<cset 38d4144df85b>>
-
reporter - changed component to Feature Model
-
reporter - changed status to resolved
Remaining part taken over by Cécile in
#298. - Log in to comment