Interface DecisionTaskHandler

  • All Known Implementing Classes:
    ReplayDecisionTaskHandler

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

      • handleDecisionTask

        DecisionTaskHandler.Result handleDecisionTask​(PollForDecisionTaskResponse decisionTask)
                                               throws java.lang.Exception
        Handles a single workflow task. Shouldn't throw any exceptions. A compliant implementation should return any unexpected errors as RespondDecisionTaskFailedRequest.
        Parameters:
        decisionTask - The decision task to handle.
        Returns:
        One of the possible decision task replies: RespondDecisionTaskCompletedRequest, RespondQueryTaskCompletedRequest, RespondDecisionTaskFailedRequest
        Throws:
        java.lang.Exception
      • isAnyTypeSupported

        boolean isAnyTypeSupported()
        True if this handler handles at least one workflow type.