Advanced Feature: Entry and Exit Actions
A state can have an entry action that is executed whenever the instance enters that state.
- This can be better than putting actions on all incoming transitions
A state can have an exit action that is executed whenever the instance exits that state.