Professional Documents
Culture Documents
UML ActivityDiagram
UML ActivityDiagram
.
How to Draw an activity diagram
1) Event-Based Action
• Event-based actions enable objects and signals to be transmitted
to receiver objects.
If an action
receives a token, The passing of a token can be a weight may be placed on an
the action is prevented by a guard evaluating Weight of edge to allow a certain
active and can be to False number of tokens to be
executed. consumed
Control Flows Contd.
• Multiple initial nodes are also permitted for
each activity
• Branches using
Decision node
Action Node
Fork Join
Activity Final
Decision Node
Guard
Online Shopping Store
• Online customer can browse or search items, view specific item, add it to shopping cart, view and
update shopping cart, checkout. User can view shopping cart at any time. Checkout is assumed to
include user registration and login.
• Shopping cart can be checked out at any time
• User can checkout any time.
• following are actions:
• Search Items, Browse Items, View Items, Add to Shopping Cart, Update Shopping Cart, View Shopping Cart,
Checkout – or more.
Partitions (Swinlane)
• Swim lane visually group the action states
To obtain a student ID, the student must request this ID from an employee of
the student office
The employee hands the student the forms that the student has to fill out to
register at the university
Once the student has filled out the forms, the student returns them to the
employee and hands over documents
The employee checks the documents. If the documents are incomplete, the process
is terminated immediately.
If the documents are all in order, the employee checks whether the student has
filled out the student ID correctly
If there are any errors, this ID is destroyed and the student has to fill out another
one
However, the student ID is not valid until it bears the semester label sent to the
student by post
Examples
Activity diagram "Passenger Services"
An Activity Diagram: Order Processing System