ParentFull threadpeter_lawrey·In a state machine, all the state should be in the context rather than the code blocks. The Java Tutorial on enums talks about fields and constructors.View on HN