Activity Diagram “Sale Activity”
Requirements
This represents the activities (steps) required to carry out a sale.
Type:
Activity Diagram
Number:
3.1
Description:
The purpose of this diagram is to focus on flows driven by internal processing (as opposed to external events). Activity diagrams are used in situations where all or most of the events represent the completion of internally-generated actions (that is, procedural flow of control).
Author:
Jon Kern
Priority:
high
Difficulty:
low
All Outgoing Links
Note Link
to Note Note1 (in Package Diagram Requirements)
Diagram Node Summary
Start
Swimlane
Activity
Swimlane
Activity
Activity
    Check Qty
Decision
Swimlane
Activity
Activity
Activity
Activity
Activity
    Start Sale
Activity
    SyncBar2
Fork/Join
    SyncBar3
Fork/Join
End
Diagram Node Detail
Start "StartState1"
All Outgoing Links
Transition
to Activity Start Sale

Swimlane "Accounting Dept"
Nested Nodes
 Authorize Payment

Activity "Authorize Payment"
Nested in node:
Swimlane Accounting Dept
All Outgoing Links
Transition
to Activity Cancel Sale
Guard Condition:
credit BAD
Transition
to Fork/Join SyncBar3
Guard Condition:
credit OK

Swimlane "Product Mgt"
Nested Nodes
 Reorder Item,  Update Inv.,  Check Qty

Activity "Reorder Item"
Nested in node:
Swimlane Product Mgt
All Outgoing Links
Transition
to End EndState1

Activity "Update Inv."
Nested in node:
Swimlane Product Mgt
All Outgoing Links
Transition
to Decision Check Qty

Decision "Check Qty"
Nested in node:
Swimlane Product Mgt
All Outgoing Links
Transition
to Activity Reorder Item
Guard Condition:
qoh < threshold
Transition
to End EndState1
Guard Condition:
qoh >= threshold

Swimlane "Sales Mgt"
Nested Nodes
 Cancel Sale,  Check Product,  Complete Sale,  Give Change,  Print Receipt,  Start Sale,  SyncBar2,  SyncBar3

Activity "Cancel Sale"
Nested in node:
Swimlane Sales Mgt

Activity "Check Product"
Nested in node:
Swimlane Sales Mgt
All Outgoing Links
Transition
to Activity Authorize Payment

Activity "Complete Sale"
Nested in node:
Swimlane Sales Mgt
All Outgoing Links
Transition
to End EndState1

Activity "Give Change"
Nested in node:
Swimlane Sales Mgt
All Outgoing Links
Transition
to Fork/Join SyncBar2

Activity "Print Receipt"
Nested in node:
Swimlane Sales Mgt
All Outgoing Links
Transition
to Fork/Join SyncBar2

Activity "Start Sale"
Nested in node:
Swimlane Sales Mgt
All Outgoing Links
Transition
to Activity Check Product
Action Expression:
for each

Fork/Join "SyncBar2"
Nested in node:
Swimlane Sales Mgt
All Outgoing Links
Transition
to Activity Complete Sale

Fork/Join "SyncBar3"
Nested in node:
Swimlane Sales Mgt
All Outgoing Links
Transition
to Activity Give Change
Transition
to Activity Print Receipt
Transition
to Activity Update Inv.

End "EndState1"