Top Banner
UML Use Case Diagrams How use cases relate to one another
11

07 uml use case diagrams

May 19, 2015

Download

Technology

Rap Payne
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 07 uml use case diagrams

UML Use Case Diagrams How use cases relate to one another

Page 2: 07 uml use case diagrams

A use case diagram shows all use cases and their relationships with one another and all actors

Page 3: 07 uml use case diagrams

Use case diagram = use cases + actors + relationships ¡ Actor = an external entity that might interact with

our system ¡  To create a use case diagram, we

1.  define the system 2.  find the actors 3.  find the use cases 4.  define the relationships between them

Page 4: 07 uml use case diagrams

An example of a use-case diagram

Insurance Salesperson

Customer

Sign an insurance policy

Sales statistics

Customer statistics

Actor Use case

System box

Page 5: 07 uml use case diagrams

An actor is an external thing interacting with the system

Insurance Claims System

Claimant

Claims Rep

Billing System

Agent

Page 6: 07 uml use case diagrams

Manage Claim

Claimant

Claims Rep

Payment System

Agent Review Claim

Status

Use cases are activities that the system does for the actors

Page 7: 07 uml use case diagrams

Example: Simple Order Entry System

Customer

Browse Products & Place Orders

Allows a customer to browse through a product catalog and

place orders for items

A person who may acquire products

Credit Institution

An organization that provides credit on

demand to customers

Page 8: 07 uml use case diagrams

Use brainstorming to find your initial set of actors ¡  You'll find most of your actors in a brainstorming

session ¡  Then start your use case development ¡ Other actors will reveal themselves as you realize

the use cases

Page 9: 07 uml use case diagrams

Brainstorming questions help to find actors ¡ Who starts and stops the system? ¡ Who does user and security management? ¡ Who does system administration? ¡  Is the system automated via cron? If so, time is an actor ¡  Is there a monitoring process that restarts the system if it fails? ¡  How are software updates handled? ¡ Who evaluates system activity or performance? ¡ Who will use the main functionality of the system? ¡ Who will need support from the system to do their daily tasks? ¡ Who will need to administrate and keep the system working? ¡ Which hardware devices does the system need to handle? ¡ With which other systems does the system need to interact? ¡ Who or what cares about the results that the system produces?

Page 10: 07 uml use case diagrams

Primary actors start an activity

Secondary actors merely get value from the system

Page 11: 07 uml use case diagrams

Conclusion ¡  The use case diagram gives us a high-level view

of all of the use cases, the actors, and how they relate among themselves

¡  You'll find your initial set of use cases based on the functional requirements

¡  You'll find your initial set of actors by brainstorming

¡ As you analyze further, more use cases and actors will reveal themselves