Module: AWS::Flow::Activities::InstanceMethods

Defined in:
aws-flow-ruby/aws-flow/lib/aws/decider/activity.rb

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Instance Attribute Details

- (Object) _activity_execution_context=(value) (writeonly)

Sets the AWS::Flow::ActivityExecutionContext instance for the activity task.



369
370
371
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/activity.rb', line 369

def _activity_execution_context=(value)
  @_activity_execution_context = value
end

Instance Method Details

- (ActivityExecutionContext) activity_execution_context

Gets the activity execution context for the activity task. Raises an IllegalStateException if the activity has no context.

Returns:

Raises:

  • (IllegalStateException)


376
377
378
379
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/activity.rb', line 376

def activity_execution_context
  raise IllegalStateException.new("No activity execution context") unless @_activity_execution_context
  @_activity_execution_context
end

- (Object) record_activity_heartbeat(details)

Records a heartbeat for the activity, indicating to Amazon SWF that the activity is still making progress.

Parameters:

  • details (String)

    If specified, contains details about the progress of the activity task. Up to 2048 characters can be provided.



387
388
389
# File 'aws-flow-ruby/aws-flow/lib/aws/decider/activity.rb', line 387

def record_activity_heartbeat(details)
  @_activity_execution_context.record_activity_heartbeat(details)
end