onEntry

Defines an action to perform before a change in the currentState of the FSM

Parameters

action

This action will be performed when entering a new state.