Class: AWS::Flow::CompleteWorkflowStateMachine Private

Inherits:
Object
  • Object
show all
Extended by:
DecisionStateMachineDFA
Defined in:
lib/aws/decider/state_machines.rb

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Attribute Summary collapse

Attributes included from DecisionStateMachineDFA

#start_state, #states, #symbols, #transitions

Instance Method Summary collapse

Methods included from DecisionStateMachineDFA

add_transition, add_transitions, get_start_state, get_transitions, init, self_transitions, uncovered_transitions

Constructor Details

#initialize(id, decision) ⇒ CompleteWorkflowStateMachine

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of CompleteWorkflowStateMachine.



100
101
102
103
104
# File 'lib/aws/decider/state_machines.rb', line 100

def initialize(id, decision)
  @id = id
  @decision = decision
  @current_state = :created
end

Instance Attribute Details

#idObject (readonly)

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



83
84
85
# File 'lib/aws/decider/state_machines.rb', line 83

def id
  @id
end

Instance Method Details

#consume(symbol) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



84
85
86
87
88
# File 'lib/aws/decider/state_machines.rb', line 84

def consume(symbol)
  return @decision = nil if symbol == :handle_initiation_failed_event
  return if symbol == :handle_decision_task_started_event
  raise "UnsupportedOperation"
end

#done?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Creates a new ‘CompleteWorkflowStateMachine`.

Parameters:

  • id

    The decider ID.

  • attributes

Returns:

  • (Boolean)


97
98
99
# File 'lib/aws/decider/state_machines.rb', line 97

def done?
  ! @decision.nil?
end

#get_decisionObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



107
108
109
# File 'lib/aws/decider/state_machines.rb', line 107

def get_decision
  return @decision
end