transitionTo

Attempts to transition to next. Returns true if state changed.

Throws

if the transition is not allowed.