Interface IMultipleConditionBuilder
- All Superinterfaces:
IMultiConditionBuilder<IMultipleConditionBuilder, FcMultipleConditionProps, WorkflowNode>, IWorkflowElementBuilder<WorkflowNode, FcMultipleConditionProps>
public interface IMultipleConditionBuilder
extends IMultiConditionBuilder<IMultipleConditionBuilder, FcMultipleConditionProps, WorkflowNode>
Builder for configuring a multiple condition node.
- Since:
- 8.2.0
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) Sets the description of the multiple condition node.Sets the label to be used for the "no" branch of the condition.Sets the label to be used for the "yes" branch of the condition.Sets the name of the multiple condition node.default IMultipleConditionBuilderself()Returns this builder.whenFalse(WorkflowNode... alternate) Sets the child nodes to execute when the condition evaluates to false.default IMultipleConditionBuilderwhenFalse(Iterable<WorkflowNode> alternate) Sets the child nodes to execute when the condition evaluates to false.whenTrue(WorkflowNode... consequent) Sets the child nodes to execute when the condition evaluates to true.default IMultipleConditionBuilderwhenTrue(Iterable<WorkflowNode> consequent) Sets the child nodes to execute when the condition evaluates to true.Methods inherited from interface IMultiConditionBuilder
combinationType, conditionAnd, conditionCustom, conditionOr, conditions, conditions, customCombinationExpressionMethods inherited from interface IWorkflowElementBuilder
build, buildProps
-
Method Details
-
description
Sets the description of the multiple condition node.- Parameters:
description- The description.- Returns:
- This builder for chaining method calls.
-
labelNo
Sets the label to be used for the "no" branch of the condition.- Parameters:
labelNo- The label for the "no" branch.- Returns:
- This builder for chaining method calls.
-
labelYes
Sets the label to be used for the "yes" branch of the condition.- Parameters:
labelYes- The label for the "yes" branch.- Returns:
- This builder for chaining method calls.
-
name
Sets the name of the multiple condition node.- Parameters:
name- The name.- Returns:
- This builder for chaining method calls.
-
self
Description copied from interface:IMultiConditionBuilderReturns this builder.- Specified by:
selfin interfaceIMultiConditionBuilder<IMultipleConditionBuilder, FcMultipleConditionProps, WorkflowNode>- Returns:
- This builder.
-
whenFalse
Sets the child nodes to execute when the condition evaluates to false.Can be any node or list of nodes. When not a single node of type
EWorkflowNodeType.SEQUENCE, the node or nodes are wrapped in a sequence node.- Parameters:
alternate- The child nodes to execute.- Returns:
- This builder for chaining method calls.
-
whenFalse
Sets the child nodes to execute when the condition evaluates to false.Can be any node or list of nodes. When not a single node of type
EWorkflowNodeType.SEQUENCE, the node or nodes are wrapped in a sequence node.- Parameters:
alternate- The child nodes to execute.- Returns:
- This builder for chaining method calls.
-
whenTrue
Sets the child nodes to execute when the condition evaluates to true.Can be any node or list of nodes. When not a single node of type
EWorkflowNodeType.SEQUENCE, the node or nodes are wrapped in a sequence node.- Parameters:
consequent- The child nodes to execute.- Returns:
- This builder for chaining method calls.
-
whenTrue
Sets the child nodes to execute when the condition evaluates to true.Can be any node or list of nodes. When not a single node of type
EWorkflowNodeType.SEQUENCE, the node or nodes are wrapped in a sequence node.- Parameters:
consequent- The child nodes to execute.- Returns:
- This builder for chaining method calls.
-