Order.
Order, 12.
. 12. Order.
Order.
Open State Diagram.
Start State ( ).
.
End State ( ).
.
State ().
.
State ().
.
Cancelled ().
State ().
.
Filled ().
State ().
.
Initialization ().
State ().
.
Pending ( ).
Initialization ().
Actions ().
Insert ().
.
Store Order Date ( ).
, When () On Entry ( ).
3 - 7, :
# Collect Customer Info ( ), When Do
# Add Order Items ( ), When Do
, .
Cancelled ().
2 - 7, Store Cancellation Data ( ), On Exit ( )
, .
Filled ().
2 - 7, Bill Customer ( ), Do.
, .
Transition ().
.
Initialization ().
, :
# Initialization () Pending ( )
# Pending ( ) Filled ()
# Cancelled ()
# Cancelled ()
# Filled ()
Transition to Self ( ).
Pending ( ).