Class FlowableFunctionMapper
- java.lang.Object
-
- org.flowable.common.engine.impl.javax.el.FunctionMapper
-
- org.flowable.common.engine.impl.el.FlowableFunctionMapper
-
public class FlowableFunctionMapper extends FunctionMapper
A date function mapper that can be used in EL expressions- Author:
- Tijs Rademakers, Joram Barrez
-
-
Field Summary
Fields Modifier and Type Field Description protected BiFunction<String,String,FlowableFunctionDelegate>functionResolver
-
Constructor Summary
Constructors Constructor Description FlowableFunctionMapper(BiFunction<String,String,FlowableFunctionDelegate> functionResolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MethodresolveFunction(String prefix, String localName)Resolves the specified prefix and local name into a java.lang.Method.voidsetFunctionResolver(BiFunction<String,String,FlowableFunctionDelegate> functionResolver)
-
-
-
Field Detail
-
functionResolver
protected BiFunction<String,String,FlowableFunctionDelegate> functionResolver
-
-
Constructor Detail
-
FlowableFunctionMapper
public FlowableFunctionMapper(BiFunction<String,String,FlowableFunctionDelegate> functionResolver)
-
-
Method Detail
-
setFunctionResolver
public void setFunctionResolver(BiFunction<String,String,FlowableFunctionDelegate> functionResolver)
-
resolveFunction
public Method resolveFunction(String prefix, String localName)
Description copied from class:FunctionMapperResolves the specified prefix and local name into a java.lang.Method. Returns null if no function could be found that matches the given prefix and local name.- Specified by:
resolveFunctionin classFunctionMapper- Parameters:
prefix- the prefix of the function, or "" if no prefix. For example, "fn" in ${fn:method()}, or "" in ${method()}.localName- the short name of the function. For example, "method" in ${fn:method()}.- Returns:
- the static method to invoke, or null if no match was found.
-
-