module AWS::Flow::Activities::InstanceMethods

Attributes

_activity_execution_context[W]

Sets the {ActivityExecutionContext} instance for the activity task.

Public Instance Methods

activity_execution_context() click to toggle source

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

@return [ActivityExecutionContext] The execution context for this activity.

# File 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
record_activity_heartbeat(details) click to toggle source

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

@param [String] details

If specified, contains details about the progress of the activity task. Up to 2048
characters can be provided.
# File lib/aws/decider/activity.rb, line 387
def record_activity_heartbeat(details)
  @_activity_execution_context.record_activity_heartbeat(details)
end