Class: Textus::Workflow::StepExecutor

Inherits:
Object
  • Object
show all
Defined in:
lib/textus/workflow/step_executor.rb

Defined Under Namespace

Classes: StepScope

Constant Summary collapse

DEFAULT_TIMEOUT =
30
CONCURRENCY_ADAPTER =
Textus::Infra::Adapters::ConcurrencyAdapter.new

Instance Method Summary collapse

Instance Method Details

#execute(steps, ctx) ⇒ Object



23
24
25
26
27
# File 'lib/textus/workflow/step_executor.rb', line 23

def execute(steps, ctx)
  data = nil
  steps.each { |step| data = execute_one(step, data, ctx) }
  data
end