Class ReplayWorkflowTaskHandler

    • Method Detail

      • handleWorkflowTask

        public WorkflowTaskHandler.Result handleWorkflowTask​(io.temporal.api.workflowservice.v1.PollWorkflowTaskQueueResponse workflowTask)
                                                      throws java.lang.Exception
        Description copied from interface: WorkflowTaskHandler
        Handles a single workflow task
        Specified by:
        handleWorkflowTask in interface WorkflowTaskHandler
        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