Package com.yworkflow.definition.model
Interface Condition
- All Superinterfaces:
CanCopy<Condition>,HasId<String>,HasParent<Condition,,Model<?, ?>> Model<Condition,,String> Validatable
- All Known Subinterfaces:
ConditionGroup
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 Summary
Modifier and TypeMethodDescriptionbooleanevaluate(WorkflowExecutionContext context) Evaluates this condition against the given attributes and current state.Methods inherited from interface com.yworkflow.definition.model.base.HasParent
withParentMethods 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
-
evaluate
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
-