Interface ExpressionManager
-
- All Known Implementing Classes:
DefaultExpressionManager
public interface ExpressionManagerUsed as an entry point for runtime evaluation of the expressions.- Author:
- Tijs Rademakers, Joram Barrez
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExpressioncreateExpression(String expression)Creates anExpressioninstance from the given String.List<FlowableAstFunctionCreator>getAstFunctionCreators()Returns theFlowableAstFunctionCreatorwhich potentially can alter the expression functions during the creation of anExpressioninstance.Map<Object,Object>getBeans()Returns the beans registered with this expression manager instance.ELContextgetElContext(VariableContainer variableContainer)Creates anELContextagainst whichExpressioninstance can be resolved.List<FlowableFunctionDelegate>getFunctionDelegates()Returns the custom functions registered and usable in expressions.voidsetAstFunctionCreators(List<FlowableAstFunctionCreator> astFunctionCreators)Sets theFlowableAstFunctionCreatorinstances which can alter the expression functions during the creation of anExpressioninstance.voidsetBeans(Map<Object,Object> beans)Sets the beans which can be used in expressions.voidsetFunctionDelegates(List<FlowableFunctionDelegate> functionDelegates)Set the custom functions usable in expressions.
-
-
-
Method Detail
-
createExpression
Expression createExpression(String expression)
Creates anExpressioninstance from the given String. Expression are resolved against aVariableContainer(e.g. a process Execution, a case instance plan item, etc.)
-
getElContext
ELContext getElContext(VariableContainer variableContainer)
Creates anELContextagainst whichExpressioninstance can be resolved.
-
getBeans
Map<Object,Object> getBeans()
Returns the beans registered with this expression manager instance.
-
getFunctionDelegates
List<FlowableFunctionDelegate> getFunctionDelegates()
Returns the custom functions registered and usable in expressions.
-
setFunctionDelegates
void setFunctionDelegates(List<FlowableFunctionDelegate> functionDelegates)
Set the custom functions usable in expressions.
-
getAstFunctionCreators
List<FlowableAstFunctionCreator> getAstFunctionCreators()
Returns theFlowableAstFunctionCreatorwhich potentially can alter the expression functions during the creation of anExpressioninstance.
-
setAstFunctionCreators
void setAstFunctionCreators(List<FlowableAstFunctionCreator> astFunctionCreators)
Sets theFlowableAstFunctionCreatorinstances which can alter the expression functions during the creation of anExpressioninstance.
-
-