public interface ActivityExecutionContext
Modifier and Type | Method and Description |
---|---|
void |
doNotCompleteOnReturn()
If this method is called during an activity execution then activity is not going to complete
when its method returns.
|
java.lang.String |
getDomain() |
IWorkflowService |
getService() |
ActivityTask |
getTask() |
byte[] |
getTaskToken() |
WorkflowExecution |
getWorkflowExecution() |
boolean |
isDoNotCompleteOnReturn() |
void |
recordActivityHeartbeat(java.lang.Object details)
Use to notify Simple Workflow that activity execution is alive.
|
byte[] getTaskToken()
WorkflowExecution getWorkflowExecution()
ActivityTask getTask()
void recordActivityHeartbeat(java.lang.Object details) throws ActivityCompletionException
details
- In case of activity timeout details are returned as a field of the exception
thrown.java.util.concurrent.CancellationException
- Indicates that activity cancellation was requested by the
workflow.Should be rethrown from activity implementation to indicate successful
cancellation.ActivityCompletionException
void doNotCompleteOnReturn()
ActivityCompletionClient
.boolean isDoNotCompleteOnReturn()
IWorkflowService getService()
java.lang.String getDomain()