State Transition Diagram for Restaurant Order Processing |
(Click on the Image to Enlarge)
Explanation
³Placed
When the
order is newly created it is in the placed state. At the entry of this state, a
new order is created. In this state, one or more items are added into it and at
the end the order is placed i.e. sent to the restaurant.
³Accepted
The waiter
in the restaurant may reject the order for some reasons. If s/he rejects the
order then the life cycle of the order ends. If s/he accepts the order then the
order enters accepted state.
³Processing
The order
is placed in a queue. When its turn arrives, it is sent to kitchen and it
enters the processing state. Here the order is processed i.e. cooked, packed
and prepared.At the exit of this state, the order is assigned to a delivery boy
for delivery.
³Dispatched
The order
enters dispatched state after it is ready and assigned to a delivery person who
performs the task of home delivery.
³Delivered
When a
customer accepts the order and makes the payment then order enters delivered
state.
³Delivery Rejected
No comments:
Post a Comment
Your comments are very much valuable for us. Thanks for giving your precious time.