Interface FunctionBuilder


public interface FunctionBuilder
Builder interface for creating Function instances. This builder provides methods for configuring workflow functions using either script-based or alias-based function definitions.
Since:
1.0
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Creates an alias-based function with the specified value and no arguments.
    void
    Creates an alias-based function with the specified value and arguments.
    Builds the Function instance with all configured properties.
    void
    scriptFunction(String value, String script)
    Creates a script-based function with the specified value and script.
  • Method Details

    • scriptFunction

      void scriptFunction(String value, String script)
      Creates a script-based function with the specified value and script.
      Parameters:
      value - the function value/identifier
      script - the script to execute
    • aliasFunction

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

      default void aliasFunction(String value)
      Creates an alias-based function with the specified value and no arguments.
      Parameters:
      value - the function value/identifier
    • build

      Function build()
      Builds the Function instance with all configured properties.
      Returns:
      a new Function instance