class AWS::Flow::SignalDecisionStateMachine

@api private

Public Class Methods

new(decision_id, attributes) click to toggle source
# File lib/aws/decider/state_machines.rb, line 263
def initialize(decision_id, attributes)
  @attributes = attributes
  super(decision_id)
end

Public Instance Methods

create_signal_external_workflow_execution_decison() click to toggle source
# File lib/aws/decider/state_machines.rb, line 275
def create_signal_external_workflow_execution_decison
  extra_options = {}
  [:input, :control, :run_id].each do |type|
    extra_options[type] = @attributes.send(type) if @attributes.send(type)
  end
  result = {
    :decision_type => "SignalExternalWorkflowExecution",
    :signal_external_workflow_execution_decision_attributes =>
    {
      :signal_name => @attributes.signal_name,
      :workflow_id => @attributes.workflow_id
    }
  }
  if ! extra_options.empty?
    result[:signal_external_workflow_execution_decision_attributes].merge! extra_options
  end
  result
end
get_decision() click to toggle source
# File lib/aws/decider/state_machines.rb, line 268
def get_decision
  case @current_state
  when :created
    return create_signal_external_workflow_execution_decison
  end
end