Class: AWS::Flow::WorkflowContext

Inherits:
Object
  • Object
show all
Defined in:
lib/aws/decider/decision_context.rb

Overview

The context for a workflow

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(decision_task, workflow_clock) ⇒ WorkflowContext

Creates a new ‘WorkflowContext`

Parameters:

  • decision_task

    The decision task method for this workflow. This is accessible after instance creation by using the #decision_task attribute.

  • workflow_clock

    The AWS::Flow::WorkflowClock to use to schedule timers for this workflow. This is accessible after instance creation by using the #workflow_clock attribute.



50
51
52
53
# File 'lib/aws/decider/decision_context.rb', line 50

def initialize(decision_task, workflow_clock)
  @decision_task = decision_task
  @workflow_clock = workflow_clock
end

Instance Attribute Details

#continue_as_new_optionsObject

Returns the value of attribute continue_as_new_options.



33
34
35
# File 'lib/aws/decider/decision_context.rb', line 33

def continue_as_new_options
  @continue_as_new_options
end

#decision_taskObject

The decision task method for this workflow.



35
36
37
# File 'lib/aws/decider/decision_context.rb', line 35

def decision_task
  @decision_task
end

#workflow_clockObject

The AWS::Flow::WorkflowClock for this workflow.



38
39
40
# File 'lib/aws/decider/decision_context.rb', line 38

def workflow_clock
  @workflow_clock
end

Instance Method Details

#workflow_executionObject



54
55
56
# File 'lib/aws/decider/decision_context.rb', line 54

def workflow_execution
  @decision_task.workflow_execution
end