Class: BusinessFlow::InstrumentedExecutor
- Inherits:
-
DefaultStepExecutor
- Object
- DefaultStepExecutor
- BusinessFlow::InstrumentedExecutor
- Defined in:
- lib/business_flow/instrumented_executor.rb
Overview
Fire ActiveSupport events for every step that’s run and on errors
Direct Known Subclasses
Instance Method Summary collapse
Methods inherited from DefaultStepExecutor
Constructor Details
This class inherits a constructor from BusinessFlow::DefaultStepExecutor
Instance Method Details
#call ⇒ Object
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 |