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 Type
    Method
    Description
    default void
    Creates an alias-based validator with the specified value and no arguments.
    void
    Creates an alias-based validator with the specified value and arguments.
    void
    scriptValidator(String value, String script)
    Creates a script-based validator with the specified value and script.
  • Method Details

    • scriptValidator

      void scriptValidator(String value, String script)
      Creates a script-based validator with the specified value and script.
      Parameters:
      value - the validator value/identifier
      script - the script to execute for validation
    • aliasValidator

      void aliasValidator(String value, Map<String,String> args)
      Creates an alias-based validator with the specified value and arguments.
      Parameters:
      value - the validator value/identifier
      args - the arguments for the validator
    • aliasValidator

      default void aliasValidator(String value)
      Creates an alias-based validator with the specified value and no arguments.
      Parameters:
      value - the validator value/identifier