Package com.yworkflow.instance.extension
Interface WorkflowInstanceCondition
- All Superinterfaces:
WorkflowInstanceExtension
Interface for implementing custom workflow instance conditions. WorkflowInstanceCondition
provides a way to evaluate custom conditions during workflow instance execution, with access to
the workflow instance context and condition details.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionbooleancheck(WorkflowExecutionContext context, Condition condition, Attributes args) Checks if the condition is satisfied given the current context and attributes.Methods inherited from interface com.yworkflow.instance.extension.WorkflowInstanceExtension
getPriority, getRegistration
-
Method Details
-
check
boolean check(WorkflowExecutionContext context, Condition condition, Attributes args) throws WorkflowException Checks if the condition is satisfied given the current context and attributes.- Parameters:
context- the workflow execution contextcondition- the condition to evaluateargs- the args the condition is configured with- Returns:
- true if the condition is satisfied, false otherwise
- Throws:
WorkflowException- if there's an error evaluating the condition
-