Method: Dynflow::Persistence#load_action

Defined in:
lib/dynflow/persistence.rb

#load_action(step) ⇒ Object



19
20
21
22
23
24
# File 'lib/dynflow/persistence.rb', line 19

def load_action(step)
  attributes = adapter
               .load_action(step.execution_plan_id, step.action_id)
               .update(step: step, phase: step.phase)
  return Action.from_hash(attributes, step.world)
end