Sha256: 5d4a13a387eb3a92e6b6ed9994ddc7464e82342d9c250a5b79b678858e014c77

Contents?: true

Size: 662 Bytes

Versions: 21

Compression:

Stored size: 662 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

21 entries across 21 versions & 1 rubygems

Version Path
dynflow-0.8.37 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.36 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.35 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.34 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.33 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.32 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.31 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.30 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.29 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.28 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.27 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.26 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.25 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.24 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.23 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.22 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.21 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.20 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.19 lib/dynflow/execution_plan/steps/finalize_step.rb
dynflow-0.8.18 lib/dynflow/execution_plan/steps/finalize_step.rb