Interface IMultiConditionBuilder<Self extends IMultiConditionBuilder<Self, Props, WorkflowElement>, Props, WorkflowElement extends AWorkflowElement<?,?>>
- Type Parameters:
Self- The type of the builder.
- All Superinterfaces:
IWorkflowElementBuilder<WorkflowElement, Props>
- All Known Subinterfaces:
IMultipleConditionBuilder
public interface IMultiConditionBuilder<Self extends IMultiConditionBuilder<Self, Props, WorkflowElement>, Props, WorkflowElement extends AWorkflowElement<?,?>>
extends IWorkflowElementBuilder<WorkflowElement, Props>
Contract for builders that allow configuring multiple conditions.
- Since:
- 8.2.0
-
Method Summary
Modifier and TypeMethodDescriptionSets the combination type to be used to combine all individual conditions.default SelfconditionAnd(ISingleConditionProducer... conditions) Combines all individual conditions with a logical OR.default SelfconditionCustom(String expression, ISingleConditionProducer... conditions) Combines all individual conditions with a custom boolean expression.default SelfconditionOr(ISingleConditionProducer... conditions) Combines all individual conditions with a logical AND.conditions(ISingleConditionProducer... conditions) Sets the individual conditions to the list of conditions.conditions(Iterable<SingleCondition> conditions) Sets the individual conditions to the list of conditions.customCombinationExpression(String expression) Sets the custom boolean expression to use to combine all individual conditions.self()Returns this builder.Methods inherited from interface IWorkflowElementBuilder
build, buildProps
-
Method Details
-
combinationType
Sets the combination type to be used to combine all individual conditions. Prefer usingconditionAnd(ISingleConditionProducer...),conditionOr(ISingleConditionProducer...), orconditionCustom(String, ISingleConditionProducer...).- Parameters:
type- The combination type.- Returns:
- This builder for chaining method calls.
-
conditionAnd
Combines all individual conditions with a logical OR.- Parameters:
conditions- The individual conditions to combine.- Returns:
- This builder for chaining method calls.
-
conditionCustom
@CanIgnoreReturnValue default Self conditionCustom(String expression, ISingleConditionProducer... conditions) Combines all individual conditions with a custom boolean expression.- Parameters:
expression- The custom boolean expression.conditions- The individual conditions to combine.- Returns:
- This builder for chaining method calls.
-
conditionOr
Combines all individual conditions with a logical AND.- Parameters:
conditions- The individual conditions to combine.- Returns:
- This builder for chaining method calls.
-
conditions
Sets the individual conditions to the list of conditions. Prefer usingconditionAnd(ISingleConditionProducer...),conditionOr(ISingleConditionProducer...), orconditionCustom(String, ISingleConditionProducer...).- Parameters:
conditions- The individual conditions to combine.- Returns:
- This builder for chaining method calls.
-
conditions
Sets the individual conditions to the list of conditions. Prefer usingconditionAnd(ISingleConditionProducer...),conditionOr(ISingleConditionProducer...), orconditionCustom(String, ISingleConditionProducer...).- Parameters:
conditions- The conditions to add.- Returns:
- This builder for chaining method calls.
-
customCombinationExpression
Sets the custom boolean expression to use to combine all individual conditions. Prefer usingconditionAnd(ISingleConditionProducer...),conditionOr(ISingleConditionProducer...), orconditionCustom(String, ISingleConditionProducer...).- Parameters:
expression- The custom boolean expression.- Returns:
- This builder for chaining method calls.
-
self
-