Interface WaitForThreadsNodeOutput

  • All Superinterfaces:
    NodeOutput

    public interface WaitForThreadsNodeOutput
    extends NodeOutput
    The `WaitForThreadsNodeOutput` interface represents a specialized NodeOutput used to manage parallel thread executions and control their behavior during workflow execution.

    When using this interface, you can set a policy that determines how the node should handle waiting for threads' parallel executions:

    • Method Detail

      • handleExceptionOnChild

        WaitForThreadsNodeOutput handleExceptionOnChild​(java.lang.String exceptionName,
                                                        ThreadFunc handler)
        Specifies a Failure Handler to run in case any of the ThreadRun's that we are waiting for in this WaitForThreadsNode fails with a specific EXCEPTION.
        Parameters:
        exceptionName - the exception name
        handler - the WorkflowThread defining the failure handler
        Returns:
        this WaitForThreadsNodeOutput
      • handleErrorOnChild

        WaitForThreadsNodeOutput handleErrorOnChild​(io.littlehorse.sdk.common.proto.LHErrorType error,
                                                    ThreadFunc handler)
        Specifies a Failure Handler to run in case any of the ThreadRun's that we are waiting for in this WaitForThreadsNode fails with a specific ERROR.
        Parameters:
        error - the ERROR type
        handler - the WorkflowThread defining the failure handler
        Returns:
        this WaitForThreadsNodeOutput
      • handleAnyFailureOnChild

        WaitForThreadsNodeOutput handleAnyFailureOnChild​(ThreadFunc handler)
        Specifies a Failure Handler to run in case any of the ThreadRun's that we are waiting for in this WaitForThreadsNode fails with any Failure.
        Parameters:
        handler - the WorkflowThread defining the failure handler
        Returns:
        this WaitForThreadsNodeOutput