Final states
When a machine reaches the final state, it can no longer receive any events, and anything running inside it is canceled and cleaned up. The box with a surrounding border icon represents the final state.
A machine can have multiple final states or no final states.
In the video player below, Stopped is the final child state in the Opened state. When the video player is Stopped, the video player moves to its Closed state.
Make a state a final state
First, select the state you want to set as the final state.
Using the quick actions menu
- Right-click the state to bring up the quick actions menu.
- Choose Final from the Type options.
Using the State details panel
- Select the state you want to set as the final state.
- Open the State details panel from the right tool menu.
- Choose Final from the Type dropdown menu.