Design: State Diagram Design for a Simple Order Processing System
Design the state diagram and explain transitions for order processing only. Implementation details and UI design are out of scope.
Functional Requirements
Non-Functional Requirements
state diagram in system design?A to state B on event start in a state diagram?A -> B : event.Idle -> Processing : start
Processing -> Idle : stop
Processing -> Error : fail
Processing and receives the fail event?Processing state and receives fail event.Processing, on fail, the transition goes to Error.Start -> Running : begin
Running -> Paused : pause
Paused -> Running pause
State1 -> State2 : event.Paused -> Running pause missing the colon before pause.Idle, Selecting, Dispensing, and OutOfStock. Which transition should be added to handle the event stockEmpty when the machine is in Idle?stockEmpty means no items are left to dispense.Idle and stock is empty, it should move to OutOfStock state.Pass the test and this pattern moves unknown