Professional Documents
Culture Documents
Using Activity Diagrams To Model Use Cases Visually
Using Activity Diagrams To Model Use Cases Visually
3
Motivations for UML
4
Types of UML diagrams
• There are different types of UML diagram, each
with slightly different syntax rules:
• use cases.
• class diagrams.
• sequence diagrams.
• package diagrams.
• state diagrams
• activity diagrams
• deployment diagrams
5
UML in your documents
• UML is intended to ease the task of communicating
software designs.
6
UML pitfalls, 1
• UML is a language, with a (reasonably) rigorous
syntax and accepted semantics; that is, the diagrams
have a meaning. Thus you have to be careful that
the meaning of your diagram is what you intended.
7
UML pitfalls, 2
8
Recap- System Modeling
10
PROCESS MODEL OF INVOLUNTARY DETENTION
Process model of
involuntary detention
11
Activity Diagrams
• Model business workflows
For each X:
TRANSITION REPEATED STEPS
If the flow rejoins
the Primary Path, it
is known as an
Alternate Path.
[Condition 2]
[Condition 1]
If the flow does NOT
rejoin the Primary
Path, it is known as an
Exception Path.
[Condition 3] [Condition 2]
[Condition 1]
We can label the
Guards in order to easily
identify the paths.
P: [Condition 1]
Primary Path: P1, P2.
We can label the Steps for easy backward
Alternate Path 1: P1, A1.1, P2. reference from Business Rules and a Logical
Exception Path 1: P1, E1.1. Data Model.
P1:
P: [Condition 1]
[Condition 3] [Condition 2]
[Condition 1]
A B
[Condition 3] [Condition 2]
[Condition 1]
A C
B
In some Use Cases,
you will need to model
repeated steps.
[Condition 3] [Condition 2]
[Condition 1]
B
[Condition 3] [Condition 2]
[Condition 1]
For each X:
• Control Nodes
– Initial and Final Nodes
– Forks and Joins
– Decision and Merge Points
• States
• Swimlanes
Activity
Diagram -
Example
Activities
• An activity is like a state where the criterion for leaving the state is
the completion of the activity
Actions
• On an occurrence of the transition all the activities with arcs from the transition
are initiated
• A fork node splits the current flow through an activity into multiple concurrent
flows
• In a detailed design model, you can use forks to represent multiple processes or
multiple threads in a program.
Joins
• A merge point brings together alternate flows into a single output flow
- note that it does not synchronise multiple concurrent flows
States
• A state in an activity diagram is a point where some event needs to take place
before activity can continue
• There can be several End states – multiple End states can be used to
indicated different follow-on processes from a particular process