Sha256: 823c113acba468e1ac1db3931194903b6ceb49d7e923f2e41bbf9f05beeff880

Contents?: true

Size: 663 Bytes

Versions: 27

Compression:

Stored size: 663 Bytes

Contents

module Dynflow
  module ExecutionPlan::Steps
    class FinalizeStep < AbstractFlowStep

      def self.state_transitions
        @state_transitions ||= {
            pending:   [:running, :skipped], # :skipped when its run_step is skipped
            running:   [:success, :error],
            success:   [:pending], # when restarting finalize phase
            suspended: [],
            skipped:   [],
            error:     [:pending, :skipped] # pending when restarting finalize phase
        }
      end


      def phase
        Action::Finalize
      end

      def mark_to_skip
        self.state = :skipped
        self.save
      end

    end
  end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
dynflow-0.8.16 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.15 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.14 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.13 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.12 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.11 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.10 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.9 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.8 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.7 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.6 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.5 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.4 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.3 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.2 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.1 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.0 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.7.9 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.7.8 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.7.7 lib/dynflow/execution_plan/steps/finalize_step.rb