Interface ExpressionManager
- All Known Implementing Classes:
CmmnExpressionManager,DefaultExpressionManager,ProcessExpressionManager,VariableScopeExpressionManager
public interface ExpressionManager
Used as an entry point for runtime evaluation of the expressions.
- Author:
- Tijs Rademakers, Joram Barrez
-
Method Summary
Modifier and TypeMethodDescriptioncreateExpression(String expression) Creates anExpressioninstance from the given String.Returns theFlowableAstFunctionCreatorwhich potentially can alter the expression functions during the creation of anExpressioninstance.getBeans()Returns the beans registered with this expression manager instance.getElContext(VariableContainer variableContainer) Creates anELContextagainst whichExpressioninstance can be resolved.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.voidSets the beans which can be used in expressions.voidsetFunctionDelegates(List<FlowableFunctionDelegate> functionDelegates) Set the custom functions usable in expressions.voidsetFunctionResolverFactory(FlowableFunctionResolverFactory functionResolverFactory)
-
Method Details
-
createExpression
Creates anExpressioninstance from the given String. Expression are resolved against aVariableContainer(e.g. a process Execution, a case instance plan item, etc.) -
getElContext
Creates anELContextagainst whichExpressioninstance can be resolved. -
getBeans
Returns the beans registered with this expression manager instance. -
setBeans
Sets the beans which can be used in expressions. -
getFunctionDelegates
List<FlowableFunctionDelegate> getFunctionDelegates()Returns the custom functions registered and usable in expressions. -
setFunctionDelegates
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
Sets theFlowableAstFunctionCreatorinstances which can alter the expression functions during the creation of anExpressioninstance. -
getFunctionResolverFactory
FlowableFunctionResolverFactory getFunctionResolverFactory() -
setFunctionResolverFactory
-