class AWS::Flow::WorkflowContext
The context for a workflow.
Attributes
continue_as_new_options[RW]
decision_task[RW]
The decision task method for this workflow.
workflow_clock[RW]
The {WorkflowClock} for this workflow.
Public Class Methods
new(decision_task, workflow_clock)
click to toggle source
Creates a new ‘WorkflowContext`.
@param decision_task
The decision task method for this workflow. This is accessible after instance creation by using the {#decision_task} attribute.
@param workflow_clock
The {WorkflowClock} to use to schedule timers for this workflow. This is accessible after instance creation by using the {#workflow_clock} attribute.
# File lib/aws/decider/decision_context.rb, line 50 def initialize(decision_task, workflow_clock) @decision_task = decision_task @workflow_clock = workflow_clock end
Public Instance Methods
workflow_execution()
click to toggle source
# File lib/aws/decider/decision_context.rb, line 54 def workflow_execution @decision_task.workflow_execution end