Package com.yworkflow.definition.model
Interface ConditionGroup
- All Superinterfaces:
CanCopy<Condition>,Condition,HasId<String>,HasParent<Condition,,Model<?, ?>> Model<Condition,,String> Validatable
Represents a collection of conditions that can be combined using logical operators. Conditions
provides a way to group multiple individual conditions and evaluate them together using Boolean
(AND; OR) logic.
Conditions are used throughout the workflow to create complex boolean expressions that control workflow behavior. They can be nested to create sophisticated decision trees and business rules.
- Since:
- 1.0
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumLogical operators for combining conditions. -
Method Summary
Modifier and TypeMethodDescriptioncopy()Creates a deep copy of these conditions.Gets all the conditions in this collection.Gets the logical operator used to combine the conditions.withParent(Model<?, ?> parent) Creates a copy of these conditions with a new parent.Methods inherited from interface com.yworkflow.definition.model.base.Model
getExtensions, getParent, getProperties, getPropertyDifferenceMethods inherited from interface com.yworkflow.definition.model.validation.Validatable
validate
-
Method Details
-
withParent
Creates a copy of these conditions with a new parent.- Specified by:
withParentin interfaceHasParent<Condition,Model<?, ?>> - Parameters:
parent- the new parent for the conditions- Returns:
- a new Conditions instance with the specified parent
-
copy
ConditionGroup copy()Creates a deep copy of these conditions. -
getOperator
ConditionGroup.Operator getOperator()Gets the logical operator used to combine the conditions.- Returns:
- the operator (AND or OR)
-
getConditions
Gets all the conditions in this collection.- Returns:
- a ChildList containing all conditions
-