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
# File 'lib/business_flow/instrumented_executor.rb', line 6

def call
  f_class = flow.class
  f_class.instrument('flow', flow) do |payload|
    super
    notify_errors(f_class.event_name, payload)
  end
end