Interface ValidatorBuilder
public interface ValidatorBuilder
Builder interface for creating Validator instances. This builder provides methods for configuring
workflow validators using either script-based or alias-based validator definitions.
This builder is typically used as part of transition builders, state builders, and result builders to define the validators that should be executed to validate workflow data and state before transitions are allowed.
- Since:
- 1.0
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaliasValidator(String value) Creates an alias-based validator with the specified value and no arguments.voidaliasValidator(String value, Map<String, String> args) Creates an alias-based validator with the specified value and arguments.voidscriptValidator(String value, String script) Creates a script-based validator with the specified value and script.
-
Method Details
-
scriptValidator
Creates a script-based validator with the specified value and script.- Parameters:
value- the validator value/identifierscript- the script to execute for validation
-
aliasValidator
Creates an alias-based validator with the specified value and arguments.- Parameters:
value- the validator value/identifierargs- the arguments for the validator
-
aliasValidator
Creates an alias-based validator with the specified value and no arguments.- Parameters:
value- the validator value/identifier
-