Callback for determining the next state in the state machine.
{nextState: <State>}
{stop: true
undefined
Callback for determining the next state in the state machine.