Package io.littlehorse.sdk.wfsdk
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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description WaitForThreadsNodeOutputhandleAnyFailureOnChild(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.WaitForThreadsNodeOutputhandleErrorOnChild(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.WaitForThreadsNodeOutputhandleExceptionOnChild(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.-
Methods inherited from interface io.littlehorse.sdk.wfsdk.NodeOutput
jsonPath, timeout
-
-
-
-
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 namehandler- 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 typehandler- 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
-
-