lib/dynflow/execution_plan.rb
# a fallback object representing a plan with some corrupted data,
# preventing to load the whole plan properly, this can be used for presenting
# at least some data and not running into internal server errors
a fallback object representing a plan with some corrupted data,
preventing to load the whole plan properly, this can be used for presenting
at least some data and not running into internal server errors
a fallback object representing a plan with some corrupted data preventing to load the whole plan properly this can be used for presenting at least some data and not running into internal server errors
def prepare(action_class, options = {})
      options = options.dup
      caller_action = Type! options.delete(:caller_action), Dynflow::Action, NilClass
      raise "Unexpected options #{options.keys.inspect}" unless options.empty?
      save
      @root_plan_step = add_plan_step(action_class, caller_action)
      step = @root_plan_step.save
      run_hooks(:pending)
      step
    end
def prepare ( action_class , options = { } ) options = options . dup caller_action = Type! options . delete ( :caller_action ) , Dynflow :: Action , NilClass raise "Unexpected options #{options.keys.inspect}" unless options . empty? save @root_plan_step = add_plan_step ( action_class , caller_action ) step = @root_plan_step . save run_hooks ( :pending ) step end
a fallback object representing a plan with some corrupted data,
preventing to load the whole plan properly, this can be used for presenting
at least some data and not running into internal server errors
a fallback object representing a plan with some corrupted data preventing to load the whole plan properly this can be used for presenting at least some data and not running into internal server errors
action_class
options