Class: BusinessFlow::InstrumentedExecutor

Inherits:
DefaultStepExecutor show all
Defined in:
lib/business_flow/instrumented_executor.rb

Overview

Fire ActiveSupport events for every step that’s run and on errors

Direct Known Subclasses

InstrumentedStepExecutor

Instance Method Summary collapse

Methods inherited from DefaultStepExecutor

#initialize

Constructor Details

This class inherits a constructor from BusinessFlow::DefaultStepExecutor

Instance Method Details

#callObject



6
7
8
9
10
11
12
13
# File 'lib/business_flow/instrumented_executor.rb', line 6

def call
  name = flow_event_name
  payload = { flow: flow }
  ActiveSupport::Notifications.instrument(name, payload) do
    super
  end
  notify_errors(name, payload)
end