Interface Condition

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

public interface Condition extends Model<Condition,String>, HasParent<Condition,Model<?,?>>
Represents a condition that can be evaluated during workflow execution. Condition defines a boolean expression that determines whether certain workflow operations should be available or executed based on the current workflow state and attributes.
Since:
1.0
See Also:
  • Method Details

    • evaluate

      boolean evaluate(WorkflowExecutionContext context) throws WorkflowException
      Evaluates this condition against the given attributes and current state.
      Parameters:
      context - the execution context
      Returns:
      true if the condition is satisfied, false otherwise
      Throws:
      WorkflowException - if there's an error evaluating the condition