Interface WorkflowTaskHandler

  • All Known Implementing Classes:
    ReplayWorkflowTaskHandler

    public interface WorkflowTaskHandler
    Interface of workflow task handlers.
    • Method Detail

      • handleWorkflowTask

        WorkflowTaskHandler.Result handleWorkflowTask​(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask)
                                               throws java.lang.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:
        java.lang.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.