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: WaitForThreadsPolicy.STOP_ON_FAILURE: Stops the entire execution for parent and children threads when a single node fails

    See Also:
    WaitForThreadsPolicy
    • Method Detail

      • withPolicy

        WaitForThreadsNodeOutput withPolicy​(io.littlehorse.sdk.common.proto.WaitForThreadsPolicy policy)
        Sets the policy that determines how the node should handle waiting for threads' parallel executions. Usage example: WaitForThreadsNodeOutput output = thread.waitForThreads(...) output.withPolicy(WaitForThreadsPolicy.STOP_ON_FAILURE);
        Parameters:
        policy - The policy to be used by the node to determine whether to continue with the execution or not.
        Returns:
        A reference to the updated WaitForThreadsNodeOutput.
        See Also:
        WaitForThreadsPolicy