Method: Dynflow::Persistence#load_action_for_presentation
- Defined in:
- lib/dynflow/persistence.rb
#load_action_for_presentation(execution_plan, action_id, step = nil) ⇒ Object
33 34 35 36 37 38 |
# File 'lib/dynflow/persistence.rb', line 33 def load_action_for_presentation(execution_plan, action_id, step = nil) attributes = adapter.load_action(execution_plan.id, action_id) Action.from_hash(attributes.update(phase: Action::Present, execution_plan: execution_plan, step: step), @world).tap do |present_action| @world.middleware.execute(:present, present_action) {} end end |