Class: AWS::Flow::WorkflowContext

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

Overview

The context for a workflow.

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (WorkflowContext) initialize(decision_task, workflow_clock)

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 'aws-flow-ruby/aws-flow/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

- (Object) continue_as_new_options

Returns the value of attribute continue_as_new_options



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

def continue_as_new_options
  @continue_as_new_options
end

- (Object) decision_task

The decision task method for this workflow.



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

def decision_task
  @decision_task
end

- (Object) workflow_clock

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



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

def workflow_clock
  @workflow_clock
end

Instance Method Details

- (Object) workflow_execution



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

def workflow_execution
  @decision_task.workflow_execution
end