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