Activity Diagram
Activity Diagram
Introduction(I)
Activity diagrams describe procedural
logic, business process, and workflow.
First Action To DO
The initial state shows the starting point for the action sequence
within an activity diagram.
Basic Elements--Initial state(II)
Initial state can indicate only ONE action.
Action 1
Action 2
First Action To DO
Decision
A diamond with one flow entering and
several leaving.
[Drink contains
alcohol]
Make Sure Customer Is At
least 21 Years Old
Customer
Orders Drink
Make Sure
Customer Is At
least 21 Years Old [customers age < 21]
[Drink contains
Customer alcohol]
Orders Drink [customers age >= 21]
[else]
Action 1
Fork
Synch with one flow going into it and several
leaving it.
Denotes the beginning of parallel actions.
Verify Order
Products Are In
Stock
Receive Order
Verify Customer
Has Available
Credit
Join
Synch with several flows entering and one
leaving.
All incoming flows must reach it before
processing may continue. This denotes the end
Verify Order
of Products
parallel processing.
Are In
Stock
Accept Order
Verify Customer
Has Available
Credit
Signals
An Activity diagram can have a clearly
defined start point, which corresponds to an
invocation of a program or routine.
Activity diagram can also show response to
signals.
A time signal occurs because of the passage
of time (for example, each month end might
trigger a signal.)
A real time signal indicates that the activity
receives an event from an outside process.
The activity listens for those signals, and the
diagram defines how the activity reacts.
Signals
Activity diagrams can show signals sent or
received
For example, we can send a message and then
wait for a reply before we can continue.
Basically, the signals are flow triggers.
Connectors
- does the same job as a simple
arrow
Tokens
Tokens flow through the diagrams:
Example:
The hotels may be booked
independently and concurrently
with each other and with
booking the flight.
Advanced Notation
Conditional threads
Partitions
Conditional threads
One of a set of
concurrent threads is
conditional.
Example:
Frequent-flyer
member?
Award the passenger
frequent flyer miles.
Nested Activity Diagram
diagram refers to an
external one that uses
more abstraction
Partitions
The contents of an activity
diagram may be organized
into partitions
May represent
organizational unit
Dimensional Partition
Dimensional Partition
Dimensional Partition
Or
Websites:
Activity Diagrams:
http://www.agilemodeling.com/artifacts/activityDiagram.htm
http://computersciencesource.wordpress.com/2010/03/15/software-engineering-activity-diagrams/
http://www.cse.unt.edu/~rgoodrum/Teaching/2009/fall/4910/website%20files/handouts/umlbasicsp2_actdg.pdf
http://www.devx.com/ibm/Article/21615
http://edutechwiki.unige.ch/en/UML_activity_diagram
http://www.sa-depot.com/?p=158
http://sourcemaking.com/uml/modeling-business-systems/external-view/activity-diagrams
http://www.uml-diagrams.org/activity-diagrams.html
Observer:
http://www.blackwasp.co.uk/Observer.aspx
http://www.cs.clemson.edu/~malloy/courses/patterns/observer.html
http://www.codeproject.com/KB/architecture/Observer_Design_Pattern.aspx
http://java.dzone.com/articles/observer-pattern?utm_source=am6_feedtweet&utm_medium=twitter&utm_campaign=toya256ForRSS
http://www.patterndepot.com/put/8/observer.pdf
http://sourcemaking.com/design_patterns/observer
http://userpages.umbc.edu/~tarr/dp/lectures/Observer.pdf