l2 Umlactivity
l2 Umlactivity
Activity Diagrams
Introduction Activity
Activity Diagrams - notation Diagrams
Introduction
How to apply activity diagrams Activity Diagrams
- notation
Guidelines How to apply
activity diagrams
Guidelines
Activity
Diagrams
Introduction
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
What is an Activity Diagram UML Activity
Diagrams,
State-Machine
Diagrams and
Modelling
I An Activity Diagram is on of the Behaviour diargams.
I Activity modelling is the sequence and conditions for
coordinating lower-level behaviours, rather than which
classifiers own those behaviours. Activity
Diagrams
I These are commonly called control flow and object flow Introduction
State-Machine
Diagrams
I Final Node: Introduction
State-Machine
I An activity may have more than one activity final node; Diagrams -
notation
the first one reached stops all flows in the activity. How to apply
state-machine
diagrams
Further
Examples
UML Activity
Action Diagrams,
State-Machine
Diagrams and
Modelling
I Action:
I An action represents a single step within an activity that
is not further decomposed within the activity.
I An activity represents a behaviour that is composed of Activity
individual elements that are actions. Diagrams
I An action is simple from the point of view of the Introduction
Activity Diagrams
activity containing it, but may be complex in its effect - notation
Further
Examples
UML Activity
Merge and Decision Nodes Diagrams,
State-Machine
Diagrams and
Modelling
I Merge Node:
I A merge node is a control node that brings together
multiple alternate flows.
I It is not used to synchronize concurrent flows but to Activity
Diagrams
accept one among several alternate flows. Introduction
I A merge node has multiple incoming edges and a single Activity Diagrams
- notation
outgoing edge. How to apply
activity diagrams
I Decision Node: Guidelines
Further
Examples
UML Activity
Join and Fork Nodes Diagrams,
State-Machine
Diagrams and
Modelling
I Join Node:
I A join node is a control node that synchronizes multiple
flows.
I A join node has multiple incoming edges and one Activity
outgoing edge. Diagrams
Introduction
I Fork Node: Activity Diagrams
- notation
I A fork node is a control node that splits a flow into How to apply
multiple concurrent flows. activity diagrams
Guidelines
I A fork node has one incoming edge and multiple
State-Machine
outgoing edges. Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
Object Node Diagrams,
State-Machine
Diagrams and
Modelling
I Object Node:
I An object node is an activity node that indicates an Activity
instance of a particular classifier, possibly in a particular Diagrams
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
Note Diagrams,
State-Machine
Diagrams and
Modelling
I Note: Activity
Diagrams
I A note (comment) gives the ability to attach various Introduction
remarks to elements. Activity Diagrams
- notation
I A comment carries no semantic force, but may contain How to apply
information that is useful to a modeller. activity diagrams
Guidelines
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
Buisness Process Modelling Diagrams,
State-Machine
Diagrams and
Modelling
Activity
I Example: Parcel shipping Diagrams
I The process of shipping a parcel is non-trivial; there are Introduction
Activity Diagrams
many parties involived (customer, driver,. . . ) and many - notation
How to apply
steps. activity diagrams
I The process can be captured by a Use Case diagram, Guidelines
Further
Examples
UML Activity
Activity Diagram Parcel shipping Diagrams,
State-Machine
Diagrams and
Modelling
Activity
Diagrams
Introduction
Activity Diagrams
- notation
How to apply
activity diagrams
Guidelines
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
Guideline for Activity Modelling Diagrams,
State-Machine
Diagrams and
Modelling
Further
Examples
UML Activity
Diagrams,
State-Machine
Diagrams and
Modelling
Activity
Diagrams
State-Machine Introduction
Activity Diagrams
- notation
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
What is a State-Machine Diagram UML Activity
Diagrams,
State-Machine
Diagrams and
Modelling
indicates when an event occurs e.g. when the event “off Further
Examples
hook” occurs, transition the telephone from “idle” to
“active” state.
UML Activity
Initial Pseudo State and Final State Diagrams,
State-Machine
Diagrams and
Modelling
I Initial Pseudo State:
I An initial pseudostate represents a default vertex that is
the source for a single transition to the default state.
I There can be at most one initial vertex in a region. Activity
Diagrams
Introduction
Activity Diagrams
- notation
How to apply
activity diagrams
Guidelines
State-Machine
Diagrams
I Final State: Introduction
State-Machine
I A special kind of state signifying that the enclosing Diagrams -
notation
region is completed, leading to the entire state machine How to apply
being completed. state-machine
diagrams
Further
Examples
UML Activity
State Diagrams,
State-Machine
Diagrams and
Modelling
I State:
I A state models a situation during which some (usually
implicit) invariant condition holds.
I The invariant may represent a static situation such as Activity
Diagrams
an object waiting for some external event to occur. Introduction
I However, it can also model dynamic conditions such as Activity Diagrams
- notation
the process of performing some behaviour (i.e., the How to apply
model element under consideration enters the state activity diagrams
Guidelines
when the behaviour commences and leaves it as soon as
State-Machine
the behaviour is completed). Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
Choice Diagrams,
State-Machine
Diagrams and
Modelling
I Choice:
I choice vertices result in the dynamic evaluation of the Activity
guards of the triggers of its outgoing transitions. Diagrams
I It allows splitting of transitions into multiple outgoing Introduction
Activity Diagrams
paths. - notation
Further
Examples
UML Activity
Join and Fork Diagrams,
State-Machine
Diagrams and
I Join: Modelling
Further
Examples
UML Activity
Transition Diagrams,
State-Machine
Diagrams and
Modelling
I Transition:
I A transition is a directed relationship between a source
vertex and a target vertex.
I It may be part of a compound transition, which takes Activity
the state machine from one state configuration to Diagrams
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
Note Diagrams,
State-Machine
Diagrams and
Modelling
I Note: Activity
Diagrams
I A note (comment) gives the ability to attach various Introduction
remarks to elements. Activity Diagrams
- notation
I A comment carries no semantic force, but may contain How to apply
information that is useful to a modeller. activity diagrams
Guidelines
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
State-Independent and State Diagrams,
State-Machine
Dependent Objects Diagrams and
Modelling
Activity
Diagrams
Introduction
I If an object always responds the same way to an event, Activity Diagrams
then it is considered state-independent with respect to - notation
How to apply
that event. activity diagrams
Guidelines
I If for all events of interest an object always reacts the State-Machine
Diagrams
same way, it is a state-independent object. Introduction
Further
Examples
UML Activity
State-Independent and State Diagrams,
State-Machine
Dependent Objects Diagrams and
Modelling
Activity
I Business information systems have few state-dependent Diagrams
Introduction
classes, so it is not helpful to apply a state machine Activity Diagrams
- notation
modelling. How to apply
activity diagrams
I Process control, device control, protocol handlers, and Guidelines
telecommunication domains often have many State-Machine
state-dependent objects; state machine modelling would Diagrams
Further
Examples
UML Activity
Example: Booking a psychiatrist Diagrams,
State-Machine
appointment Diagrams and
Modelling
Activity
Diagrams
Introduction
Activity Diagrams
- notation
How to apply
activity diagrams
Guidelines
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
Diagrams,
State-Machine
Diagrams and
Modelling
Activity
Diagrams
Introduction
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
Recycling machine - deposit items Diagrams,
State-Machine
Diagrams and
Modelling
returned, deposit value, total of this type and lump sum. Further
Examples
UML Activity
Recycling Activity Diagrams Diagrams,
State-Machine
Diagrams and
Modelling
Activity
Diagrams
Introduction
Activity Diagrams
- notation
How to apply
activity diagrams
Guidelines
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
Recycling machine - changing Diagrams,
State-Machine
values. . . Diagrams and
Modelling
Activity
I When an operator changes items’ values, the machine Diagrams
Activity
Diagrams
Introduction
Activity Diagrams
- notation
How to apply
activity diagrams
Guidelines
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
ATM State-machine diagrams Diagrams,
State-Machine
Diagrams and
Modelling
Activity
Diagrams
Introduction
Activity Diagrams
- notation
How to apply
activity diagrams
Guidelines
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
ATM State-machine diagrams Diagrams,
State-Machine
Diagrams and
Modelling
Activity
Diagrams
Introduction
Activity Diagrams
- notation
How to apply
activity diagrams
Guidelines
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples
UML Activity
ATM State-machine diagrams Diagrams,
State-Machine
Diagrams and
Modelling
Activity
Diagrams
Introduction
Activity Diagrams
- notation
How to apply
activity diagrams
Guidelines
State-Machine
Diagrams
Introduction
State-Machine
Diagrams -
notation
How to apply
state-machine
diagrams
Further
Examples