Class: AWS::Flow::DecisionStateMachineBase 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) ⇒ DecisionStateMachineBase

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 DecisionStateMachineBase.



118
119
120
121
# File 'lib/aws/decider/state_machines.rb', line 118

def initialize(id)
  @id = id
  @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.



116
117
118
# File 'lib/aws/decider/state_machines.rb', line 116

def id
  @id
end

Instance Method Details

#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.

Returns:

  • (Boolean)


150
151
152
# File 'lib/aws/decider/state_machines.rb', line 150

def done?
  @current_state == :completed || @current_state == :completed_after_cancellation_decision_sent
end

#handle_started_event(event) ⇒ 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.



124
125
126
# File 'lib/aws/decider/state_machines.rb', line 124

def handle_started_event(event)
  @state_history << :handle_started_event
end