Executes the given operation and dispatches the necessary events based on its result and the configuration.