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.
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
    rawValidator(String type, String value, Map<String,String> args)
    Creates a validator with the specified value and script.
    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
    • rawValidator

      void rawValidator(String type, String value, Map<String,String> args)
      Creates a validator with the specified value and script.
      Parameters:
      type - the type of validator to execute for validation
      value - the validator value/identifier
    • 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