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 Details

    • 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

      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

      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: IMultiConditionBuilder
      Returns this builder.
      Specified by:
      self in interface IMultiConditionBuilder<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.