public abstract class ActivityExecutionContext extends Object
ActivityImplementation| Constructor and Description | 
|---|
| ActivityExecutionContext() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | getDomain() | 
| abstract AmazonSimpleWorkflow | getService() | 
| abstract ActivityTask | getTask() | 
| abstract String | getTaskToken() | 
| abstract WorkflowExecution | getWorkflowExecution() | 
| abstract void | recordActivityHeartbeat(String details)Use to notify Simple Workflow that activity execution is alive. | 
public abstract String getTaskToken()
ManualActivityCompletion is used.public abstract WorkflowExecution getWorkflowExecution()
public abstract ActivityTask getTask()
public abstract void recordActivityHeartbeat(String details) throws AmazonServiceException, AmazonClientException, CancellationException
details - In case of activity timeout details are returned as a field of
            the exception thrown.AmazonClientException - 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.AmazonServiceException - 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
             the caller.CancellationException - Indicates that activity cancellation was requested by the
             workflow.Should be rethrown from activity implementation to
             indicate successful cancellation.public abstract AmazonSimpleWorkflow getService()
public String getDomain()