Class: ManageIQ::Floe::Workflow::States::Succeed

Inherits:
ManageIQ::Floe::Workflow::State show all
Defined in:
lib/manageiq/floe/workflow/states/succeed.rb

Instance Attribute Summary collapse

Attributes inherited from ManageIQ::Floe::Workflow::State

#comment, #name, #payload, #type, #workflow

Instance Method Summary collapse

Methods inherited from ManageIQ::Floe::Workflow::State

build!, #context, #run!, #to_dot, #to_dot_transitions

Methods included from Logging

included, #logger

Constructor Details

#initialize(workflow, name, payload) ⇒ Succeed

Returns a new instance of Succeed.



10
11
12
13
14
15
# File 'lib/manageiq/floe/workflow/states/succeed.rb', line 10

def initialize(workflow, name, payload)
  super

  @input_path  = Path.new(payload.fetch("InputPath", "$"))
  @output_path = Path.new(payload.fetch("OutputPath", "$"))
end

Instance Attribute Details

#input_pathObject (readonly)

Returns the value of attribute input_path.



8
9
10
# File 'lib/manageiq/floe/workflow/states/succeed.rb', line 8

def input_path
  @input_path
end

#output_pathObject (readonly)

Returns the value of attribute output_path.



8
9
10
# File 'lib/manageiq/floe/workflow/states/succeed.rb', line 8

def output_path
  @output_path
end

Instance Method Details

#end?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/manageiq/floe/workflow/states/succeed.rb', line 17

def end?
  true # TODO: Handle if this is ending a parallel or map state
end