class Dynflow::ExecutionPlan::InvalidPlan

a fallback object representing a plan with some corrupted data, preventing to load the whole plan properly, this can be used for presenting at least some data and not running into internal server errors

Attributes

ended_at[R]
exception[R]
execution_history[R]
execution_time[R]
id[R]
label[R]
real_time[R]
started_at[R]
state[R]

Public Class Methods

new(exception, id, label, state, started_at = nil, ended_at = nil, execution_time = nil, real_time = nil, execution_history = nil) click to toggle source
# File lib/dynflow/execution_plan.rb, line 16
def initialize(exception, id, label, state,
               started_at = nil, ended_at = nil,
               execution_time = nil, real_time = nil, execution_history = nil)
  @exception = exception
  @id = id
  @label = label || 'N/A'
  @state = state
  @started_at = started_at
  @ended_at = ended_at
  @execution_time = execution_time
  @real_time = real_time
  @execution_history = execution_history || []
end

Public Instance Methods

result() click to toggle source
# File lib/dynflow/execution_plan.rb, line 34
def result
  'N/A'
end
valid?() click to toggle source
# File lib/dynflow/execution_plan.rb, line 30
def valid?
  false
end