Interface WorkflowCondition
public interface WorkflowCondition
Interface for implementing custom workflow conditions. WorkflowCondition provides the mechanism
for evaluating business rules and logic that determine when transitions should be available or
when conditional results should be executed.
Conditions are evaluated during workflow execution to determine the flow of the workflow. They can check various aspects of the workflow state, including attribute values, user permissions, business rules, and external system states.
Custom conditions are registered with the workflow engine through the ExtensionProvider and can be referenced in workflow definitions by type and value.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheck(WorkflowExecutionContext context, Condition condition) Evaluates the condition against the provided attributes and returns whether the condition is satisfied.
-
Method Details
-
check
Evaluates the condition against the provided attributes and returns whether the condition is satisfied.- Parameters:
context- the execution contextcondition- the condition definition containing type, value, and arguments- Returns:
- true if the condition is satisfied, false otherwise
- Throws:
WorkflowException- if there's an error evaluating the condition
-