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 plan(*args)
      update_state(:planning)
      world.middleware.execute(:plan_phase, root_plan_step.action_class, self) do
        with_planning_scope do
          root_action = root_plan_step.execute(self, nil, false, *args)
          @label = root_action.label
          if @dependency_graph.unresolved?
            raise "Some dependencies were not resolved: #{@dependency_graph.inspect}"
          end
        end
      end
      if @run_flow.size == 1
        @run_flow = @run_flow.sub_flows.first
      end
      steps.values.each(&:save)
      update_state(error? ? :stopped : :planned)
    end
def plan ( * args ) update_state ( :planning ) world . middleware . execute ( :plan_phase , root_plan_step . action_class , self ) do with_planning_scope do root_action = root_plan_step . execute ( self , nil , false , * args ) @label = root_action . label if @dependency_graph . unresolved? raise "Some dependencies were not resolved: #{@dependency_graph.inspect}" end end end if @run_flow . size == 1 @run_flow = @run_flow . sub_flows . first end steps . values . each ( & :save ) update_state ( error? ? :stopped : :planned ) 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
args