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 TypeMethodDescriptiondefault voidaliasFunction(String value) Creates an alias-based function with the specified value and no arguments.voidaliasFunction(String value, Map<String, String> args) Creates an alias-based function with the specified value and arguments.build()Builds the Function instance with all configured properties.voidscriptFunction(String value, String script) Creates a script-based function with the specified value and script.
-
Method Details
-
scriptFunction
Creates a script-based function with the specified value and script.- Parameters:
value- the function value/identifierscript- the script to execute
-
aliasFunction
Creates an alias-based function with the specified value and arguments.- Parameters:
value- the function value/identifierargs- the arguments for the function
-
aliasFunction
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
-