Class: AWS::Flow::ChildWorkflowDecisionStateMachine Private
- Inherits:
-
DecisionStateMachineBase
- Object
- DecisionStateMachineBase
- AWS::Flow::ChildWorkflowDecisionStateMachine
- 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 ⇒ Object private
- #run_id ⇒ Object private
Attributes inherited from DecisionStateMachineBase
Attributes included from DecisionStateMachineDFA
#start_state, #states, #symbols, #transitions
Instance Method Summary collapse
- #create_request_cancel_external_workflow_execution_decision ⇒ Object private
- #create_start_child_workflow_execution_decision ⇒ Object private
- #get_decision ⇒ Object private
-
#initialize(decision_id, attributes) ⇒ ChildWorkflowDecisionStateMachine
constructor
private
A new instance of ChildWorkflowDecisionStateMachine.
Methods inherited from DecisionStateMachineBase
Methods included from DecisionStateMachineDFA
#add_transition, #add_transitions, #get_start_state, #get_transitions, #init, #self_transitions, #uncovered_transitions
Constructor Details
#initialize(decision_id, attributes) ⇒ ChildWorkflowDecisionStateMachine
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 ChildWorkflowDecisionStateMachine.
312 313 314 315 |
# File 'lib/aws/decider/state_machines.rb', line 312 def initialize(decision_id, attributes) @attributes = attributes super(decision_id) end |
Instance Attribute Details
#attributes ⇒ 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.
311 312 313 |
# File 'lib/aws/decider/state_machines.rb', line 311 def attributes @attributes end |
#run_id ⇒ 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.
311 312 313 |
# File 'lib/aws/decider/state_machines.rb', line 311 def run_id @run_id end |
Instance Method Details
#create_request_cancel_external_workflow_execution_decision ⇒ 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.
345 346 347 348 349 350 351 352 353 |
# File 'lib/aws/decider/state_machines.rb', line 345 def create_request_cancel_external_workflow_execution_decision result = { :decision_type => "RequestCancelExternalWorkflowExecution", :request_cancel_external_workflow_execution_decision_attributes => { :workflow_id => @attributes[:workflow_id].to_s, :run_id => @run_id.to_s, } } end |
#create_start_child_workflow_execution_decision ⇒ 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.
317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 |
# File 'lib/aws/decider/state_machines.rb', line 317 def create_start_child_workflow_execution_decision = @attributes[:options] workflow_name = .workflow_name || .prefix_name attribute_name = :start_child_workflow_execution_decision_attributes result = { :decision_type => "StartChildWorkflowExecution", attribute_name => { :workflow_type => { :name => "#{workflow_name}.#{options.execution_method}", :version => .version }, :workflow_id => @attributes[:workflow_id].to_s, :task_list => { :name => .task_list }, # :control => @attributes[:control] :tag_list => @attributes[:tag_list] } } result[:start_child_workflow_execution_decision_attributes].delete(:task_list) if .task_list.nil? #TODO Figure out what control is to_add = .([:execution_start_to_close_timeout, :task_start_to_close_timeout, :task_priority, :child_policy, :tag_list, :input]) result[attribute_name].merge!(to_add) result end |
#get_decision ⇒ 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.
355 356 357 358 359 360 361 362 |
# File 'lib/aws/decider/state_machines.rb', line 355 def get_decision case @current_state when :created return create_start_child_workflow_execution_decision when :cancelled_after_started return create_request_cancel_external_workflow_execution_decision end end |