UML Use Case Diagrams: Reference
In Visual Studio Ultimate, a use case diagram summarizes who uses your application or system, and what they can do with it. To create a UML use case diagram, on the Architecture menu, click New Diagram.
A use case diagram acts as a focus for the description of user requirements. It describes the relationships between requirements, users, and the major components. It does not describe the requirements in detail; these can be described in separate diagrams or in documents that can be linked to each use case.
For information about how use case diagrams can help you understand, discuss and communicate your users' needs, see Modeling User Requirements.
The tables in the following sections describe the elements that are available on a use case diagram, together with their main properties. For a full list of properties, see Properties of Elements in Use Case Diagrams.
Actors, Use cases, and Subsystems
Description and Main Properties
Represents a user, organization, or external system that interacts with your application or system. An actor is a kind of type.
Represents the actions performed by one or more actors in the pursuit of a particular goal. A use case is a kind of type.
Indicates that an actor takes part in a use case.
Subsystem or component
The system or application that you are working on, or a part of it. Can be anything from a large network to a single class in an application.
The use cases that a system or component supports appear inside its rectangle. It can be useful to show some use cases outside the rectangle, to clarify the scope of your system.
A subsystem in a use case diagram has basically the same type as a component in a component diagram.
Structuring Use Cases
An including use case calls or invokes the included one. Inclusion is used to show how a use case breaks into smaller steps. The included use case is at the arrowhead end.
Notice that the diagram does not show the order of the steps. You can use an activity diagram, sequence diagram, or other document to describe these details.
An extending use case adds goals and steps to the extended use case. The extensions operate only under certain conditions. The extended use case is at the arrowhead end.
Notice that the diagram does not show the exact circumstances under which the extension applies: you can record these in a comment or other document.
Relates a specialized and a generalized element. The generalized element is at the arrowhead end.
A specialized use case inherits the goals and actors of its generalization, and may add more specific goals and steps for achieving them.
A specialized actor inherits the use cases, attributes and associations of its generalization, and may add more.
Indicates that the design of the source depends on the design of the target.
Used to add general notes to the diagram.
An artifact provides a link to another diagram or document. You can create it by dragging a file from Solution Explorer. It can be linked with a Dependency to any other element on the diagram. An artifact is typically used to link a use case to a sequence diagram, OneNote page, Word document or PowerPoint presentation that describes it in detail. The document can either be an item in the Visual Studio solution, or a document in a shared location such as a SharePoint site.
Double-click an artifact to open the file or web page to which it links.
11 (not shown)
Use cases, actors, and subsystems can be contained within packages. Package shapes do not appear on the diagram, but you can set the LinkedPackage property of the diagram. Elements that you subsequently create on the diagram are placed within the package. For more information, see Defining Packages and Namespaces.