public interface CustomFunctionBuilder
CustomFunction.| Modifier and Type | Method and Description |
|---|---|
CustomFunction |
build()
Returns the custom function to be registered in
FeelCustomFunctionProvider. |
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 result)
Define a custom function that only returns a value and
has no further business logic (method body).
|
CustomFunctionBuilder setParams(String... params)
params - of the custom functionCustomFunctionBuilder enableVarargs()
CustomFunctionBuilder setReturnValue(Object result)
setFunction(java.util.function.Function<java.util.List<java.lang.Object>, java.lang.Object>).result - that should be returned by the custom functionCustomFunctionBuilder setFunction(java.util.function.Function<List<Object>,Object> function)
Function with a List of objects as argument
and an object as return value.
It is not possible to use this method together with
setReturnValue(java.lang.Object).function - to be calledCustomFunction build()
FeelCustomFunctionProvider.FeelException - when both setFunction(java.util.function.Function<java.util.List<java.lang.Object>, java.lang.Object>) and setReturnValue(java.lang.Object) were calledCopyright © 2015–2020 camunda services GmbH. All rights reserved.