Module: AWS::Flow::Activities::InstanceMethods
- Defined in:
- lib/aws/decider/activity.rb
Instance Attribute Summary collapse
-
#_activity_execution_context ⇒ Object
writeonly
Sets the AWS::Flow::ActivityExecutionContext instance for the activity task.
Instance Method Summary collapse
-
#activity_execution_context ⇒ ActivityExecutionContext
Gets the activity execution context for the activity task.
-
#record_activity_heartbeat(details) ⇒ Object
Records a heartbeat for the activity, indicating to Amazon SWF that the activity is still making progress.
Instance Attribute Details
#_activity_execution_context=(value) ⇒ Object (writeonly)
Sets the AWS::Flow::ActivityExecutionContext instance for the activity task.
369 370 371 |
# File 'lib/aws/decider/activity.rb', line 369 def _activity_execution_context=(value) @_activity_execution_context = value end |
Instance Method Details
#activity_execution_context ⇒ ActivityExecutionContext
Gets the activity execution context for the activity task. Raises an ‘IllegalStateException` if the activity has no context.
376 377 378 379 |
# 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) ⇒ Object
Records a heartbeat for the activity, indicating to Amazon SWF that the activity is still making progress.
387 388 389 |
# File 'lib/aws/decider/activity.rb', line 387 def record_activity_heartbeat(details) @_activity_execution_context.record_activity_heartbeat(details) end |