public class CustomFunctionBuilderImpl extends Object implements CustomFunctionBuilder
| Modifier and Type | Field and Description |
|---|---|
protected CustomFunction |
customFunction |
protected int |
functionCount |
protected static ScalaFeelLogger |
LOGGER |
| Constructor and Description |
|---|
CustomFunctionBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
CustomFunction |
build()
Returns the custom function to be registered in
FeelCustomFunctionProvider. |
protected void |
checkHasFunction() |
CustomFunctionBuilder |
enableVarargs()
Enable variable arguments
|
CustomFunctionBuilder |
setFunction(java.util.function.Function<List<Object>,Object> function)
|
CustomFunctionBuilder |
setParams(String... params)
Define the parameters of the custom function.
|
CustomFunctionBuilder |
setReturnValue(Object returnValue)
Define a custom function that only returns a value and
has no further business logic (method body).
|
protected static final ScalaFeelLogger LOGGER
protected CustomFunction customFunction
protected int functionCount
public CustomFunctionBuilder setParams(String... params)
CustomFunctionBuildersetParams in interface CustomFunctionBuilderparams - of the custom functionpublic CustomFunctionBuilder enableVarargs()
CustomFunctionBuilderenableVarargs in interface CustomFunctionBuilderpublic CustomFunctionBuilder setReturnValue(Object returnValue)
CustomFunctionBuilderCustomFunctionBuilder.setFunction(java.util.function.Function<java.util.List<java.lang.Object>, java.lang.Object>).setReturnValue in interface CustomFunctionBuilderreturnValue - that should be returned by the custom functionpublic CustomFunctionBuilder setFunction(java.util.function.Function<List<Object>,Object> function)
CustomFunctionBuilderFunction with a List of objects as argument
and an object as return value.
It is not possible to use this method together with
CustomFunctionBuilder.setReturnValue(java.lang.Object).setFunction in interface CustomFunctionBuilderfunction - to be calledpublic CustomFunction build()
CustomFunctionBuilderFeelCustomFunctionProvider.build in interface CustomFunctionBuilderprotected void checkHasFunction()
Copyright © 2015–2020 camunda services GmbH. All rights reserved.