Sha256: 2bf98833a2610f0dfd3145a8024e35a8ac3198f7b83dea1d9f86fe845ea56d8f

Contents?: true

Size: 581 Bytes

Versions: 7

Compression:

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

    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

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