Sha256: a3d477d31bbdb6523d3510fab74170a4ca39cbd35ed4df5994b713179b79a1c1

Contents?: true

Size: 640 Bytes

Versions: 7

Compression:

Stored size: 640 Bytes

Contents

module Dynflow
  module ExecutionPlan::Steps
    class RunStep < AbstractFlowStep

      def self.state_transitions
        @state_transitions ||= {
            pending:   [:running, :skipped], # :skipped when it cannot be run because it depends on skipped step
            running:   [:success, :error, :suspended],
            success:   [:suspended], # after not-done process_update
            suspended: [:running, :error], # process_update, e.g. error in setup_progress_updates
            skipped:   [],
            error:     [:skipped, :running]
        }
      end

      def phase
        Action::Run
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dynflow-0.6.2 lib/dynflow/execution_plan/steps/run_step.rb
dynflow-0.6.1 lib/dynflow/execution_plan/steps/run_step.rb
dynflow-0.6.0 lib/dynflow/execution_plan/steps/run_step.rb
dynflow-0.5.1 lib/dynflow/execution_plan/steps/run_step.rb
dynflow-0.5.0 lib/dynflow/execution_plan/steps/run_step.rb
dynflow-0.4.1 lib/dynflow/execution_plan/steps/run_step.rb
dynflow-0.4.0 lib/dynflow/execution_plan/steps/run_step.rb