How to Merge Actors in Use Case Diagrams

December 15, 2011
User Rating: / 1
Views: 2,453
PDF 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.

Background Information

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.


an example of duplicate actors 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.


we want to make this a master actor
we want to make this an auxiliary actor

Steps to merge actors

  1. We'll begin with the actor from which we want to make an auxiliary actor. In the System Admin use case diagram, right click on the actor named Manager and select Related Elements > Merge to Model Element...
    right click to open the Merge dialog box
  2. In the dialog box opened, we are going to select the actor (which will become the master model element) for the currently selected actor (which will become the auxiliary model element) to merge into.
    Merge to Model Element dialog box
    Tips: In case the target list is very long, you may want to apply filter to make it shorter.
    apply filter to make the target list shorter
  3. Select the master model element. Click Merge.
    select the master model element and click Merge
  4. When prompted, click Yes to confirm the merge. Then you are done.
    confirm to proceed with the merge

What will you see after the merge?

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

  1. You'll see the letter 'a' if you place your mouse over or select an auxiliary model element.
    symbol found in an auxiliary model element
  2. You'll see the letter 'M' if you place your mouse over or select a master model element.
    symbol found in a master model element
  3. If you go to the Model Explorer, you'll see that the duplicate actor "Manager" having been removed after the merge.
    duplicate actor (Manager) removed in Model Explorer

What does it mean when you are an auxiliary model element?

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.


moving a master model element into a package
moving an auxiliary model element into a 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.

Related Links

  1. Watch YouTube version of this tutorial
  2. How to Model Permissions on Use Case for Actors
  3. Grouping Generalizations by Creating A Generalization Set
  4. What Visual Paradigm for UML (VP-UML) can help you with use case diagrams
  5. Organizing works with model

Rate this Article

Click on one of the stars below to rate this article from 1 (lowest) to 5 (highest).

You may be interested in

  1. Writing Effective Use Case
  2. Draw Entity Relationship Diagram (ERD)
    Tagged:
  3. UML Package Diagram
    Tagged:
  4. Produce UML Use Cases from Business Process Diagram (BPD)
  5. Oracle database design with Entity Relationship Diagram
Tags of this article:

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!

Write comment

Rating

Comment

Enter the calculation result

security code