Context object passed to an activity implementation.
- workfow execution that requested the activity execution
- task that caused activity execution
Use to notify Simple Workflow that activity execution is alive.
In case of activity timeout details are returned as a field of
the exception thrown.
If any internal errors are encountered inside the client
while attempting to make the request or handle the response.
For example if a network connection is not available.
If an error response is returned by AmazonSimpleWorkflow
indicating either a problem with the data in the request.
Internal service errors are swallowed and not propagated to
Indicates that activity cancellation was requested by the
workflow.Should be rethrown from activity implementation to
indicate successful cancellation.
- an instance of the Simple Workflow Java client that is the same
used by the invoked activity worker.