Class CustomFunctionBuilderImpl
java.lang.Object
org.camunda.bpm.dmn.feel.impl.scala.function.builder.CustomFunctionBuilderImpl
- All Implemented Interfaces:
CustomFunctionBuilder
-
Field Summary
Modifier and TypeFieldDescriptionprotected CustomFunction
protected int
protected static final ScalaFeelLogger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Returns the custom function to be registered inFeelCustomFunctionProvider
.protected void
Enable 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:CustomFunctionBuilder
Define the parameters of the custom function.- Specified by:
setParams
in interfaceCustomFunctionBuilder
- Parameters:
params
- of the custom function- Returns:
- the builder
-
enableVarargs
Description copied from interface:CustomFunctionBuilder
Enable variable arguments- Specified by:
enableVarargs
in interfaceCustomFunctionBuilder
- Returns:
- the builder
-
setReturnValue
Description copied from interface:CustomFunctionBuilder
Define 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:
setReturnValue
in interfaceCustomFunctionBuilder
- Parameters:
returnValue
- that should be returned by the custom function- Returns:
- the builder
-
setFunction
Description copied from interface:CustomFunctionBuilder
Pass aFunction
with aList
of 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:
setFunction
in interfaceCustomFunctionBuilder
- Parameters:
function
- to be called- Returns:
- the builder
-
build
Description copied from interface:CustomFunctionBuilder
Returns the custom function to be registered inFeelCustomFunctionProvider
.- Specified by:
build
in interfaceCustomFunctionBuilder
- Returns:
- a custom function
-
checkHasFunction
protected void checkHasFunction()
-