Class: Floe::Workflow::ItemProcessor

Inherits:
Floe::WorkflowBase show all
Defined in:
lib/floe/workflow/item_processor.rb

Instance Attribute Summary collapse

Attributes inherited from Floe::WorkflowBase

#name, #payload, #start_at, #states, #states_by_name

Instance Method Summary collapse

Methods inherited from Floe::WorkflowBase

#current_state, #end?, #output, #run, #run_nonblock, #start_workflow, #step_nonblock, #step_nonblock_ready?, #wait_until, #waiting?

Methods included from ValidationMixin

included, #invalid_field_error!, #missing_field_error!, #parser_error!, #runtime_field_error!, #workflow_state?, #wrap_parser_error

Constructor Details

#initialize(payload, name = nil) ⇒ ItemProcessor

Returns a new instance of ItemProcessor.



8
9
10
11
# File 'lib/floe/workflow/item_processor.rb', line 8

def initialize(payload, name = nil)
  super
  @processor_config = payload.fetch("ProcessorConfig", "INLINE")
end

Instance Attribute Details

#processor_configObject (readonly)

Returns the value of attribute processor_config.



6
7
8
# File 'lib/floe/workflow/item_processor.rb', line 6

def processor_config
  @processor_config
end