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() |
<V> java.util.Optional<V> |
getHeartbeatDetails(java.lang.Class<V> detailsClass,
java.lang.reflect.Type detailsType) |
IWorkflowService |
getService() |
ActivityTask |
getTask() |
byte[] |
getTaskToken() |
WorkflowExecution |
getWorkflowExecution() |
boolean |
isDoNotCompleteOnReturn() |
<V> void |
recordActivityHeartbeat(V details)
Use to notify Simple Workflow that activity execution is alive.
|
byte[] getTaskToken()
WorkflowExecution getWorkflowExecution()
ActivityTask getTask()
<V> void recordActivityHeartbeat(V 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
<V> java.util.Optional<V> getHeartbeatDetails(java.lang.Class<V> detailsClass, java.lang.reflect.Type detailsType)
void doNotCompleteOnReturn()
ActivityCompletionClient
.boolean isDoNotCompleteOnReturn()
IWorkflowService getService()
java.lang.String getDomain()