class AWS::Flow::WorkflowFuture
A future provided by a [AWS::SimpleWorkflow::WorkflowExecution](docs.aws.amazon.com/AWSRubySDK/latest/AWS/SimpleWorkflow/WorkflowExecution.html).
@!attribute _workflow_execution
A {MinimalWorkflowExecution} instance that this future belongs to.
@!attribute return_value
The return value of the future.
Attributes
_workflow_execution[RW]
return_value[RW]
Public Class Methods
new(workflow_execution)
click to toggle source
Creates a new workflow future.
@param workflow_execution
The {MinimalWorkflowExecution} to assign to this future.
# File lib/aws/decider/workflow_client.rb, line 92 def initialize(workflow_execution) @_workflow_execution = workflow_execution.dup @return_value = Future.new end
Public Instance Methods
is_flow_future?()
click to toggle source
Determines whether the object is a flow future. The contract is that flow futures must have a ‘get` method.
@return
Always returns `true` for a {WorkflowFuture} object.
# File lib/aws/decider/workflow_client.rb, line 101 def is_flow_future? true end
method_missing(method_name, *args, &block)
click to toggle source
@api private
# File lib/aws/decider/workflow_client.rb, line 106 def method_missing(method_name, *args, &block) @return_value.send(method_name, *args, &block) end
workflow_execution()
click to toggle source
Gets the current value of the workflow execution.
@return {MinimalWorkflowExecution}
The workflow execution that this future belongs to.
# File lib/aws/decider/workflow_client.rb, line 115 def workflow_execution @_workflow_execution end