Class: AWS::Flow::WorkflowContext
- Inherits:
-
Object
- Object
- AWS::Flow::WorkflowContext
- Defined in:
- lib/aws/decider/decision_context.rb
Overview
The context for a workflow
Instance Attribute Summary collapse
-
#continue_as_new_options ⇒ Object
Returns the value of attribute continue_as_new_options.
-
#decision_task ⇒ Object
The decision task method for this workflow.
-
#workflow_clock ⇒ Object
The WorkflowClock for this workflow.
Instance Method Summary collapse
-
#initialize(decision_task, workflow_clock) ⇒ WorkflowContext
constructor
Creates a new ‘WorkflowContext`.
- #workflow_execution ⇒ Object
Constructor Details
#initialize(decision_task, workflow_clock) ⇒ WorkflowContext
Creates a new ‘WorkflowContext`
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_options ⇒ Object
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 end |
#decision_task ⇒ Object
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_clock ⇒ Object
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_execution ⇒ Object
54 55 56 |
# File 'lib/aws/decider/decision_context.rb', line 54 def workflow_execution @decision_task.workflow_execution end |