class Dynflow::Director::StepWorkItem
Attributes
step[R]
Public Class Methods
new(execution_plan_id, step, queue, sender_orchestrator_id)
click to toggle source
Calls superclass method
Dynflow::Director::WorkItem::new
# File lib/dynflow/director.rb, line 63 def initialize(execution_plan_id, step, queue, sender_orchestrator_id) super(execution_plan_id, queue, sender_orchestrator_id) @step = step end
new_from_hash(hash, *_args)
click to toggle source
# File lib/dynflow/director.rb, line 76 def self.new_from_hash(hash, *_args) self.new(hash[:execution_plan_id], Serializable.from_hash(hash[:step], hash[:execution_plan_id], Dynflow.process_world), hash[:queue], hash[:sender_orchestrator_id]) end
Public Instance Methods
execute()
click to toggle source
# File lib/dynflow/director.rb, line 68 def execute @step.execute(nil) end
to_hash()
click to toggle source
Calls superclass method
Dynflow::Director::WorkItem#to_hash
# File lib/dynflow/director.rb, line 72 def to_hash super.merge(step: step.to_hash) end