Friday, 3 May 2013

State Transition Diagram for Restaurant Order Processing

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
If the customer disowns the order placed or denies payment due to some reasons then the order enters delivery rejected stated. Here the delivery person has to specify the reason for rejection and finally the order life cycle ends.

No comments:

Post a Comment

Your comments are very much valuable for us. Thanks for giving your precious time.