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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description SelfcombinationType(EMultipleConditionCombinationType type)Sets 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.Selfconditions(ISingleConditionProducer... conditions)Sets the individual conditions to the list of conditions.Selfconditions(Iterable<SingleCondition> conditions)Sets the individual conditions to the list of conditions.SelfcustomCombinationExpression(String expression)Sets the custom boolean expression to use to combine all individual conditions.Selfself()Returns this builder.-
Methods inherited from interface de.xima.fc.workflow.processor.factory.IWorkflowElementBuilder
build, buildProps
-
-
-
-
Method Detail
-
combinationType
@CanIgnoreReturnValue Self combinationType(EMultipleConditionCombinationType type)
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
@CanIgnoreReturnValue default Self conditionAnd(ISingleConditionProducer... conditions)
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
@CanIgnoreReturnValue default Self conditionOr(ISingleConditionProducer... conditions)
Combines all individual conditions with a logical AND.- Parameters:
conditions- The individual conditions to combine.- Returns:
- This builder for chaining method calls.
-
conditions
@CanIgnoreReturnValue Self conditions(ISingleConditionProducer... 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
@CanIgnoreReturnValue Self conditions(Iterable<SingleCondition> 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
@CanIgnoreReturnValue Self customCombinationExpression(String expression)
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
Self self()
Returns this builder.- Returns:
- This builder.
-
-