Class: Orchestra::Execution::EmbeddedOperation

Inherits:
Step
  • Object
show all
Defined in:
lib/orchestra/execution.rb

Instance Attribute Summary

Attributes inherited from Step

#context, #name, #node, #operation_execution, #step

Instance Method Summary collapse

Methods inherited from Step

execute, #execute, #initialize, new, #to_node

Constructor Details

This class inherits a constructor from Orchestra::Execution::Step

Instance Method Details

#build_contextObject



162
163
164
165
166
# File 'lib/orchestra/execution.rb', line 162

def build_context
  conductor = operation_execution.registry[:conductor]
  copy_observers = conductor.method :copy_observers
  step.start_execution conductor, input, &copy_observers
end

#inputObject



168
169
170
# File 'lib/orchestra/execution.rb', line 168

def input
  operation_execution.state
end

#invokeObject



157
158
159
160
# File 'lib/orchestra/execution.rb', line 157

def invoke
  super
  context.state.select do |k,_| k == step.result end
end