-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
2022x compatibility #237
Comments
overview of changes: Main summary:
In 2021x:
attribute 'appliedStereotypeIds' is now part of the standard export (we have been adding in '_appliedStereotypeIds' separately) (InstanceSpecification and Slot outside of the stereotype use case remain the same as before) MDKIn 19.x mdk, an id spoofing for export/import was utilized in order to preserve the history and identity of slot values (in the model, if a slot value is deleted and re added, its id would change, this breaks history for the slot element). The id spoofing was done as follows for a slot:
In 2021x, the stereotype instance disappears, and 'tagged value' is owned directly by the stereotyped element. The new metatype has similar attributes to a Slot but they're named differently. owningInstance -> taggedValueOwner In order to preserve the continuity of mms elements and history going from 19.x to 2021x, the id spoofing for 2021x would apply the same way for TaggedValue elements, as follows:
For 'value' attribute, the schema for Slot have it as a list of ValueSpecification, which we embed as an object. For TaggedValue, the export would follow the same pattern of [{value: value}, {value: value2}] instead of [ value, value2 ] to prevent indexing failure in mms elasticsearch and to keep a similar structure to slot Various places where StereotypesHelper are used would need to be changed to use TagsHelper or similar to fix removed or deprecated apis. DocGen actions that deal with properties or stereotyped values would need to be updated to handle TaggedValue Any docgen ocl expression that used to get stereotyped slot values will most likely need to be updated also by the user. MMSA migration would need to be applied to mms elements:
Any special handling that considers _asi would need to be updated, as well as type inference based on stereotype ids VE
|
The text was updated successfully, but these errors were encountered: