what is an action responsible for in a flow