Method: SpotFlow::Execution#start

Defined in:
lib/spot_flow/execution.rb

#startObject



95
96
97
98
99
100
101
102
# File 'lib/spot_flow/execution.rb', line 95

def start
  @status = "started"
  @started_at = Time.zone.now
  map_input_variables if step&.input_mappings&.present?
  context.notify_listener(:execution_started, execution: self)
  step.attachments.each { |attachment| parent.execute_step(attachment, attached_to: self) } if step.is_a?(SpotFlow::Bpmn::Activity)
  continue
end