Transitions

A state transition defines what the next state is, given the current state and event. State transitions are defined on state nodes, in the on property: