Configuring Synchronized Model Elements
You can define properties from various method contexts for certain stereotypes in the synchronization profiles; these can then be automatically synchronized.
You can set synchronized elements to simplify management of element properties which exist in various method contexts with corresponding differing stereotypes.
To do this, define a synchronization set with synchronized properties for certain stereotypes from various method contexts in synchronization profiles. Model elements based on these are automatically synchronized.
You must be in the Sync State view when synchronizing properties of certain stereotypes.
We recommend that you import stereotypes from technical profiles using customization profiles so that you are not affected by MID updates and upgrades which may affect the profiles.
To use synchronous model elements, proceed as follows:
-
Creating Synchronization Profile
Create a new synchronization profile in the model configuration in the
Sync State view.
-
Importing Context Profiles
Try to import customization profiles in the synchronization profile which contain stereotypes and properties which you want to synchronize. To create synchronous elements automatically at the same time, at least one create template must exist for the stereotype in the respective profile.
-
Creating Synchronization Sets
Select a stereotype to synchronize and create a
synchronization set; you will then edit its properties in the next steps.
-
Defining Synchronous Stereotypes
Add at least one extra stereotype to be synchronized with the selected stereotype in the Synchronized Stereotypes menu.
-
Selecting Synchronous Properties
Select the properties, stereotype properties, labels, texts or relationships which should be synchronous for each stereotype. To do this, select the stereotype in the dialog and activate the properties.
The properties selected here for both stereotypes are linked in subsequent steps for redundant synchronization. Properties activated on one side apply for all synchronous elements without redundancy.
-
Linking Synchronous Properties
Click on
in the locked Synchronization Property tab to adopt all identical elements selected on both sides with the same type and name in step 5.
Adopt the synchronized property for properties with the same type but different names with
.
Restriction
You can configure name and/or value constraints for names, stereotype properties, labels and texts. Please ensure that the constraints for synchronous properties do not contradict themselves.
There are also methodically justified constraints for some element types, e.g. UML element names may not contain parentheses.
Select the entry for each adopted property and the synchronized property for each stereotype.
-
Selecting Create Templates
A stereotype's Properties tab contains a create template which is recognized in the imported profile by default. You can select a create template if more than one exist. If there are no create templates, then this element cannot be created as synchronous automatically.
If you do not wish to automatically create synchronous elements, then remove the set create template. The elements in the model are then created individually and manually linked.
-
Creating Create Defaults in the Model
Use the create defaults in the system model or partial model which use method context for this special stereotype when setting which package the synchronous elements should be created in.
-
Adding Details for Stereotypes with "Synchronous Elements" Components
If you wish to see the synchronous elements in the Details tool window, then extend or create the Details configuration using the "Synchronous Elements" Details component, preferably in the profile which will be imported by the synchronization profile.
This chapter contains the topics: