Interface Conditions

All Superinterfaces:
CanCopy<Condition>, Condition, HasId<String>, HasParent<Condition,Model<?,?>>, Model<Condition,String>, Validatable

public interface Conditions extends Model<Condition,String>, Condition
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:
  • Method Details

    • withParent

      Conditions withParent(Model<?,?> parent)
      Creates a copy of these conditions with a new parent.
      Specified by:
      withParent in interface HasParent<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.
      Specified by:
      copy in interface CanCopy<Condition>
      Returns:
      a new Conditions instance that is a copy of this one
    • getOperator

      Conditions.Operator getOperator()
      Gets the logical operator used to combine the conditions.
      Returns:
      the operator (AND or OR)
    • getConditions

      List<Condition> getConditions()
      Gets all the conditions in this collection.
      Returns:
      a ChildList containing all conditions