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