Complete the code to define the initial state in a state diagram.
stateDiagram-v2
[*] --> [1]The initial state is usually represented by an arrow pointing to the Start state.
Complete the code to add a transition triggered by an event.
stateDiagram-v2
Idle --> Running : [1]The transition from Idle to Running is triggered by the start event.
Fix the error in the transition label to correctly represent the event.
stateDiagram-v2
Running --> Paused : [1]The transition from Running to Paused should be triggered by the pause event.
Fill both blanks to define a transition with an action on event.
stateDiagram-v2
Paused --> Running : [1] / [2]The transition from Paused to Running is triggered by the resume event and performs the notifyUser action.
Fill all three blanks to define a transition with event, guard condition, and action.
stateDiagram-v2
Running --> Stopped : [1] [[2]] / [3]The transition from Running to Stopped is triggered by the stop event, guarded by the isEmergency condition, and performs the logStop action.