Skip to main content

Usecase Diagram

Overview

Use case diagrams can be used to describe the behavior of the system in response to user requests. This page describes the operations for using the use case diagram in the following order.

  • Place a use case diagram
  • Define use cases
  • Define actors
  • Define associations

Usecase Diagram

Place a use case diagram

To place a use case diagram, do the following:

Place Use Case Diagram

Operation procedure
  1. Select a package in the model navigator and click Add Model> Usecase Diagram in the context menu.
  2. The use case diagram is placed on the child elements of the selected package.

Define use cases

To define a use case, do the following:

Define usecases

Operation procedure
  1. Drag and drop [Use case] from the toolbox to the displayed use case diagram.
  2. A new use case is added as a sibling element of the displayed use case diagram.
Elements that can be added from the toolbox

You can add the following elements displayed in the toolbox in the Use Case Diagram.

IconName
PackagePackage
Use caseUse case
ActorActor
NoteNote
LabelLabels
ShapeShape
Add stereotypes to use cases

To add a stereotype, do the following:

Add Stereotype

Operation procedure
  1. Select a use case.
  2. Click the Add button in the Basic information> Stereotype field in the Property inspector to see the choices.
  3. Select a stereotype and press the [OK] button to set the stereotype for the use case and display the stereotype on the use case diagram.
tip

Stereotype choices can be defined in the Detail view of the package model.

tip

You can edit the added stereotype from the use case diagram by following the steps below.

  1. Double-click the stereotype displayed in the use case to enter the edit state.
  2. If you change the stereotype and confirm the edit, it will be reflected on the use case diagram and the stereotype of the use case will be changed.
tip

If you want to display an existing use case on the use case diagram, you can display it by dragging and dropping the use case on the model navigator to the use case diagram.

Define an actor

To define an actor, do the following:

Define actors

Operation procedure
  1. Drag and drop Actor from the toolbox onto the displayed use case diagram.
  2. A new actor is added as a sibling element of the displayed use case diagram.

Define associations

To define the association, do the following:

Add Relationship

Operation procedure
  1. Move the pointer over the use case you want to associate.
  2. Drag the [โ–ฒ] icons that appear on all sides of the use case and drop them on the other use case.
  3. A list of associations that can be added will be displayed. Select the association you want to add, and the selected association will be added.
Related that can be added

The following associations are available in Use Case Diagrams:

IconName
Actor relatedActor related
RequiresDependencies
GeneralizationInheritance
Add stereotypes to associations

To add a stereotype, do the following:

Add Stereotype

Operation procedure
  1. Select a relationship.
  2. Double-click the grayed out [<< stereotype>>] to enter the edit state.
  3. When you enter the stereotype you want to set, the stereotype is displayed in the association of the use case diagram, and the stereotype is set in the association.
tip

If you want to express inclusion or extension, define the dependency association and use the stereotype of that dependency to express it.

Restrictions

  • You cannot define extension points for use cases.
  • Substitute the system boundaries with packages.