Create a UML use case diagram

  1. On the File menu, point to New, point to Software, and then click UML Model Diagram.
  2. In the tree view (tree view: Displayed in a window in the UML Navigator, a hierarchy in which each UML element or view (diagram) is represented by an icon. The UML template automatically creates a tree view of your model.), right-click the package or subsystem in which you want to include a use case diagram (use case diagram: A diagram that shows the external actors who will interact with your system and how they will use it. The diagram consists of a system boundary, actors, use cases, and use case relationships (communicates, uses, and extends).), then point to New, and then click Use Case Diagram.
    A blank page appears, and the UML Use Case stencil becomes the top-most stencil. The workspace displays 'Use Case' as a watermark. An icon representing the diagram is added to the tree view.

 Note    If the tree view is not visible, on the UML menu, point to View, and then click Model Explorer.

  1. Drag the System Boundary shape onto the drawing page.
    Work with System Boundary shapes
    To indicate a system boundary in a use case diagram, do the following:
    1. In a use case diagram (use case diagram: A diagram that shows the external actors who will interact with your system and how they will use it. The diagram consists of a system boundary, actors, use cases, and use case relationships (communicates, uses, and extends).), drag a System Boundary shape onto the drawing page.
    2. Double-click the shape, and then type a new name for the system or press the DELETE key to delete the existing name. Click outside the shape on the drawing page.
    3. To resize the system boundary, select the shape, and then drag a selection handle.
  2. Drag Use Case shapes from the Use Case stencil and place them inside the system boundary, and then drag Actor shapes to the outside of the system boundary.
    Working with Use Case shapes
    Working with Actor shapes
  3. Use Communicates shapes to indicate relationships between use cases and actors.
    Working with Communicates shapes
    To indicate a relationship between an actor and a use case, do the following:
    1. In a use case diagram (use case diagram: A diagram that shows the external actors who will interact with your system and how they will use it. The diagram consists of a system boundary, actors, use cases, and use case relationships (communicates, uses, and extends).), drag a Communicates shape onto the drawing page.
    2. Glue one endpoint End point image, which is plus sign in a green square of the Communicates shape to a connection point Connection point image - blue X on an Actor shape.
    3. Glue the other endpoint to a connection point on a Use Case shape.
    4. If you want to add an arrow to indicate the flow of information, do the following:
  • Double-click the Communicates shape, then, under Association, click the end you want to edit, and then click Properties.
  • In the Association End category, check IsNavigable, click OK, then click OK again.
  • Right-click the Communicates shape and click Shape Display Options. Under End options, select End navigability, and then click OK.
  1. Use Uses and Extends shapes to indicate the relationships between use cases.
  • To indicate a uses relationship between two cases, do the following:
  1. In a use case diagram (use case diagram: A diagram that shows the external actors who will interact with your system and how they will use it. The diagram consists of a system boundary, actors, use cases, and use case relationships (communicates, uses, and extends).), drag a Uses relationship shape onto the drawing page.
  2. Glue the Uses endpoint without an arrowhead to a connection point Connection point image - blue X on the Use Case shape that uses the behavior of the other use case.
  3. Glue the Uses endpoint (with an arrowhead) to a connection point on the use case being used.
  4. Double-click the Uses shape to open the UML Generalization Properties dialog box. Add property values, and then click OK.
  • To indicate an extends relationship between two use cases, do the following:
  1. In a use case diagram (use case diagram: A diagram that shows the external actors who will interact with your system and how they will use it. The diagram consists of a system boundary, actors, use cases, and use case relationships (communicates, uses, and extends).), drag an Extends shape onto the drawing page.
  2. Glue the Extends endpoint End point image, which is plus sign in a green square without an arrowhead to a connection point Connection point image - blue X on the use case providing the extension.
  3. Glue the Extends endpoint with an arrowhead to a connection point on the base use case.
  4. Double-click the Extends shape to open the UML Generalization Properties dialog box. Add the property values, and then click OK.
  1. Double-click any shape (except the System Boundary shape) to open its UML Properties dialog box where you can add a name, attributes, operations, and other property values.
  2. Save the diagram.

Top of Page Top of Page

 
 
Applies to:
Visio 2003