Interface WorkflowInputValidator
public interface WorkflowInputValidator
Interface for implementing custom workflow input validators. WorkflowInputValidator provides the
mechanism for validating input data before workflow transitions are executed, ensuring data
integrity and business rule compliance.
Validators are executed before transitions to ensure that all required data is present, correctly formatted, and meets business requirements. They can validate attribute values, check business rules, verify external system states, and perform any other validation logic required by the workflow.
Custom validators 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 TypeMethodDescriptionvoidvalidate(WorkflowExecutionContext context, Validator validator) Validates the input data against the validator rules and throws an exception if validation fails.
-
Method Details
-
validate
Validates the input data against the validator rules and throws an exception if validation fails.- Parameters:
context- the execution contextvalidator- the validator definition containing type, value, and arguments- Throws:
WorkflowException- if validation fails
-