Package com.yworkflow.definition.model
Interface Conditions
- 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 AND or OR
logic.
Conditions are used throughout the workflow system to create complex boolean expressions that control workflow behavior. They can be nested to create sophisticated decision trees and business rules.
Supported operators:
- AND - All conditions must be true for the result to be true
- OR - At least one condition must be true for the result to be true
- 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
Conditions copy()Creates a deep copy of these conditions. -
getOperator
Conditions.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
-