Interface WorkflowTaskHandler
- All Known Implementing Classes:
ReplayWorkflowTaskHandler
public interface WorkflowTaskHandler
Interface of workflow task handlers.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionhandleWorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask) Handles a single workflow taskbooleanTrue if this handler handles at least one workflow type.
-
Method Details
-
handleWorkflowTask
WorkflowTaskHandler.Result handleWorkflowTask(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask) throws Exception Handles a single workflow task- Parameters:
workflowTask- The workflow task to handle.- Returns:
- One of the possible workflow task replies: RespondWorkflowTaskCompletedRequest, RespondQueryTaskCompletedRequest, RespondWorkflowTaskFailedRequest
- Throws:
Exception- an original exception or error if the processing should be just abandoned without replying to the server
-
isAnyTypeSupported
boolean isAnyTypeSupported()True if this handler handles at least one workflow type.
-