Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Synchronize Tagged Values and Constraints
When you create an element, attribute, operation or link from a UML Profile item, you add the Tagged Values and constraints from the Profile. Over time you might modify the constraints or the notes and tags of the Tagged Values of a particular profiled item, so the items already created might be missing additional Tagged Value tags and notes, or constraints.
Similarly, you might have manually set the stereotype on a set of elements and now want them to receive the Tagged Values and constraints associated with that stereotype.
To make sure you have all the related Tagged Values and constraints, use the Synch Tagged Values and Constraints function. This operates in two ways:
- If the Profile was created in an MDG Technology File and is not held in the Resources window
- If the Profile is held in the Resources window.
Synchronize Items In MDG Technology File
When an MDG Technology file is deployed in Enterprise Architect, the Profile is accessed through the Toolbox pages also defined in the file. The profiled elements in these Toolbox pages automatically trigger an additional context menu option, Synchronize Stereotype.
The MDG Technology can be an in-house customized Add-In, or an external technology such as those provided with Enterprise Architect; for example, BPMN 1.1.
To synchronize elements created using the MDG Technology pages of the Toolbox, follow the steps below:
- Open a diagram containing elements to be synchronized. Ensure that the Toolbox displays pages containing the stereotyped profile elements from the MDG Technology.
Note: |
The diagram does not necessarily have to contain profiled elements. The function operates from the Toolbox. However, you might prefer to see the immediate effect of the synchronization on element properties and Tagged Values, by opening an appropriate diagram at the start. |
- Right-click on the element profile in the Toolbox (for example, the BPMN 1.1 Activity element). The Toolbox context menu displays.
- Click on the Synchronize Stereotype menu option. The Synch Profiled Elements dialog displays.
- Click on the OK button to proceed. The Actions list is populated with the items that have been modified and the changes that were made.
You can review any changes by displaying the element Properties dialog and by opening the Tagged Values window and clicking on an appropriate profiled element.
You can also quickly synchronize the tags and constraints of a single element in a diagram by dragging the updated profile element from the Toolbox page onto the element in the diagram. Select the Apply «stereotype» context menu option.
Synchronize Items In Resources Window
To synchronize elements created using a Profile in the Resources window, follow the steps below:
- Locate the required UML Profile in the Resources window.
- Locate the stereotyped profile element.
- Right-click on it to display the context menu, and select the Synch Tagged Values and Constraints option. The Synch Profiled Elements dialog displays.
- Click on the OK button to proceed. The Actions list is populated with the items that have been modified and the changes that were made.