class Dynflow::ExecutionPlan::Steps::FinalizeStep
Public Class Methods
state_transitions()
click to toggle source
# File lib/dynflow/execution_plan/steps/finalize_step.rb, line 5 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
Public Instance Methods
mark_to_skip()
click to toggle source
# File lib/dynflow/execution_plan/steps/finalize_step.rb, line 25 def mark_to_skip self.state = :skipped self.save end
phase()
click to toggle source
# File lib/dynflow/execution_plan/steps/finalize_step.rb, line 21 def phase Action::Finalize end
update_from_action(action)
click to toggle source
Calls superclass method
Dynflow::ExecutionPlan::Steps::AbstractFlowStep#update_from_action
# File lib/dynflow/execution_plan/steps/finalize_step.rb, line 16 def update_from_action(action) super self.progress_weight = action.finalize_progress_weight end