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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IMultipleConditionBuilderdescription(String description)Sets the description of the multiple condition node.IMultipleConditionBuilderlabelNo(String labelNo)Sets the label to be used for the "no" branch of the condition.IMultipleConditionBuilderlabelYes(String labelYes)Sets the label to be used for the "yes" branch of the condition.IMultipleConditionBuildername(String name)Sets the name of the multiple condition node.default IMultipleConditionBuilderself()Returns this builder.IMultipleConditionBuilderwhenFalse(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.IMultipleConditionBuilderwhenTrue(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 de.xima.fc.workflow.processor.factory.IMultiConditionBuilder
combinationType, conditionAnd, conditionCustom, conditionOr, conditions, conditions, customCombinationExpression
-
Methods inherited from interface de.xima.fc.workflow.processor.factory.IWorkflowElementBuilder
build, buildProps
-
-
-
-
Method Detail
-
description
IMultipleConditionBuilder description(String description)
Sets the description of the multiple condition node.- Parameters:
description- The description.- Returns:
- This builder for chaining method calls.
-
labelNo
IMultipleConditionBuilder labelNo(String 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
IMultipleConditionBuilder labelYes(String 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
IMultipleConditionBuilder name(String name)
Sets the name of the multiple condition node.- Parameters:
name- The name.- Returns:
- This builder for chaining method calls.
-
self
default IMultipleConditionBuilder self()
Description copied from interface:IMultiConditionBuilderReturns this builder.- Specified by:
selfin interfaceIMultiConditionBuilder<IMultipleConditionBuilder,FcMultipleConditionProps,WorkflowNode>- Returns:
- This builder.
-
whenFalse
IMultipleConditionBuilder whenFalse(WorkflowNode... alternate)
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
default IMultipleConditionBuilder whenFalse(Iterable<WorkflowNode> alternate)
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
IMultipleConditionBuilder whenTrue(WorkflowNode... consequent)
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
default IMultipleConditionBuilder whenTrue(Iterable<WorkflowNode> consequent)
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.
-
-