| December 15, 2011 | |
User Rating:
/ 1
|
|
| Views: 2,453 | |
|
PDF
Link
Link: |
Add comments |
Sometimes we accidentally make duplicate master model elements. For example, we meant to have one actor named manager. But inadvertently we ended up with two that are identically named.
Perhaps you might have created one from a use case diagram and another in a different use case diagram.
To fix it, we could merge the duplications into a single existing master actor. This tutorial will show you how.
Note: The example below is demonstrated using Visual Paradigm for UML (VP-UML) Standard Edition.
Let's just say that we are going to begin with a project file that contains 2 use case diagrams, System Admin and Order Processing. Between them, there are 2 actors both named Manager. And we will merge one into another to remove duplicates.
Download sample project
More specifically we want to keep the actor (in the Order Processing diagram) as a master model element and make the other one (in the System Admin diagram) a copy of that.



There are a few things that you might want to take notice of after the merge. They are:


_removed_in_Model_Explorer.png)
If you change the name of an auxiliary model element (e.g. from "Manager" to "Sales Manager"), you are actually updating the master model element too or vice versa.
The master model element controls the placement. For example, if you drag a master model element (e.g. actor) into a package on a diagram, you will see it in the Model Explorer under the package. But if you drag an auxiliary into a package instead, the model element won't be placed under the package.
The master model element controls the 'life' of a model element. When you delete a master model element, you will be asked to confirm the deletion. If you delete an auxiliary, you won't be prompted.
Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).
Comments (2)
written by maryam on February 6, 2012
Hi. that's good. I test it but after that I could see both auxilary and master in Diagram Navigation
written by Jick Yeung on February 7, 2012
Hi maryam,
Thank you for your post. First of all, by "Diagram Navigation" are you referring to the Diagram Navigator where diagrams and views are listed? There is no indication as to the type of view that are listed in Diagram Navigator. If you are talking about "diagrams", the actor "Manager" in diagram "System Admin" should be in auxiliary view, while the "Manager" in diagram "Order Processing" is a master. Is this what you obtained? If not, could you describe more about the result of yours? Thank you!