This function defines an action to be invoked when the FSM changes to the provided state
The provided state
This action will be invoked