Class CustomFunctionBuilderImpl
java.lang.Object
org.operaton.bpm.dmn.feel.impl.scala.function.builder.CustomFunctionBuilderImpl
- All Implemented Interfaces:
CustomFunctionBuilder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CustomFunctionprotected intprotected static final ScalaFeelLogger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Returns the custom function to be registered inFeelCustomFunctionProvider.protected voidEnable variable argumentssetFunction(Function<List<Object>, Object> function) Define the parameters of the custom function.setReturnValue(Object returnValue) Define a custom function that only returns a value and has no further business logic (method body).
-
Field Details
-
LOGGER
-
customFunction
-
functionCount
protected int functionCount
-
-
Constructor Details
-
CustomFunctionBuilderImpl
public CustomFunctionBuilderImpl()
-
-
Method Details
-
setParams
Description copied from interface:CustomFunctionBuilderDefine the parameters of the custom function.- Specified by:
setParamsin interfaceCustomFunctionBuilder- Parameters:
params- of the custom function- Returns:
- the builder
-
enableVarargs
Description copied from interface:CustomFunctionBuilderEnable variable arguments- Specified by:
enableVarargsin interfaceCustomFunctionBuilder- Returns:
- the builder
-
setReturnValue
Description copied from interface:CustomFunctionBuilderDefine a custom function that only returns a value and has no further business logic (method body). It is not possible to use this method together withCustomFunctionBuilder.setFunction(java.util.function.Function<java.util.List<java.lang.Object>, java.lang.Object>).- Specified by:
setReturnValuein interfaceCustomFunctionBuilder- Parameters:
returnValue- that should be returned by the custom function- Returns:
- the builder
-
setFunction
Description copied from interface:CustomFunctionBuilderPass aFunctionwith aListof objects as argument and an object as return value. It is not possible to use this method together withCustomFunctionBuilder.setReturnValue(java.lang.Object).- Specified by:
setFunctionin interfaceCustomFunctionBuilder- Parameters:
function- to be called- Returns:
- the builder
-
build
Description copied from interface:CustomFunctionBuilderReturns the custom function to be registered inFeelCustomFunctionProvider.- Specified by:
buildin interfaceCustomFunctionBuilder- Returns:
- a custom function
-
checkHasFunction
protected void checkHasFunction()
-