In order to be able to define the metadata that the automation process requires, you first need to install the UML Stereotypes that enable the metadata parameters.
Locate the Modeling -> Manage Stereotypes… menu item and click it.
In the dialog that opens, click the Import… button.
Navigate to the SEStereotypes.xml file included in your D♯ Engine installation root folder.
Open then file, and verify that its contents have been installed into VP by navigating to the Class -> Class structure, and by clicking the Class element. You should now see the complete list of Stereotypes defined for Class.
After clicking OK the Stereotypes can be assigned to the elements.
Watch the video below.
Re-importing Stereotypes
For some D♯ Engine releases, the metadata for the classes may change. In this case you should re-import the Stereotypes into Visual Paradigm. To do that, follow the steps above. However, when importing the stereotype file, you may get a dialog informing you that there are conflicts. This means that existing stereotype definitions differ from the ones that you are importing, which makes sense, as they have changed. In this case you should select the Overwrite option (not the default Unchanged option).
At this point, any new classes you assign the changed stereotypes to will include the new or changed metadata definitions, but existing classes may not. To update the metadata of existing classes, you may need to perform a couple of extra steps:
- Restart Visual Paradigm directly after successful import of the stereotype file
- There is a bug that sometimes duplicates the Tagged Values in all elements of the affected Stereotypes. Cleaning these up is hard and unnecessary work. So during this process, restart VP rather more often than not.
- Open a model and inspect the metadata for existing elements (classes, for example) that that are mentioned in the release Notes, and look for any new or changed metadata items. If they are present, you’re good to go. If not, you need to execute the following steps.
- Open the Manage Stereotypes dialog
- For each changed stereotype definition, open it by double-clicking it, and then close it by clicking the OK button. This refreshes the definition for the selected element type.
- Once all stereotype definitions have been refreshed like this, press OK in the Manage Stereotypes dialog. You will get the message “This will cause lots of diagram/model elements to be loaded and may take a long time, are you sure?“. Answer Yes to this, since this is where the changes are applied.
- Restart Visual Paradigm before working on any model.
And as pictures:
The default conflict resolving method for affected element types.
Change to Overwrite by clicking the Overwrite All button.
Double-click the possibly affected stereotypes.
Just close the dialog,
Yes, absolutely. This updates the elements’ metadata.