Interface ManualActivityCompletionClient
public interface ManualActivityCompletionClient
This client is attached to a specific activity execution and let user report completion
(successful, failed or confirm cancellation) and perform heartbeats.
May be obtained by calling ActivityExecutionContext.useLocalManualCompletion()
-
Method Summary
Modifier and TypeMethodDescriptionvoidCompletes the activity execution successfully.voidCompletes the activity execution with failure.voidrecordHeartbeat(Object details) Records heartbeat for an activityvoidreportCancellation(Object details) Confirms successful cancellation to the server.
-
Method Details
-
complete
Completes the activity execution successfully.- Parameters:
result- of the activity execution
-
fail
Completes the activity execution with failure.- Parameters:
failure- the exception to be used as a failure details object
-
recordHeartbeat
Records heartbeat for an activity- Parameters:
details- to record with the heartbeat- Throws:
CanceledFailure
-
reportCancellation
Confirms successful cancellation to the server.- Parameters:
details- to record with the cancellation
-