public class DefaultExpressionManager extends Object implements ExpressionManager
Central manager for all expressions.
Process parsers will use this to build expression objects that are stored in the process definitions.
Then also this class is used as an entry point for runtime evaluation of the expressions.
| Modifier and Type | Field and Description |
|---|---|
protected Map<Object,Object> |
beans |
protected ExpressionFactory |
expressionFactory |
protected List<FlowableFunctionDelegate> |
functionDelegates |
protected ELContext |
parsingElContext |
| Constructor and Description |
|---|
DefaultExpressionManager() |
DefaultExpressionManager(Map<Object,Object> beans) |
| Modifier and Type | Method and Description |
|---|---|
protected FlowableElContext |
createElContext(Map<String,Object> variables) |
protected ELResolver |
createElResolver(Map<String,Object> variables) |
Expression |
createExpression(String expression) |
Map<Object,Object> |
getBeans() |
ELContext |
getElContext(Map<String,Object> variables) |
List<FlowableFunctionDelegate> |
getFunctionDelegates() |
void |
setBeans(Map<Object,Object> beans) |
void |
setExpressionFactory(ExpressionFactory expressionFactory) |
void |
setFunctionDelegates(List<FlowableFunctionDelegate> functionDelegates) |
protected ExpressionFactory expressionFactory
protected List<FlowableFunctionDelegate> functionDelegates
protected ELContext parsingElContext
public Expression createExpression(String expression)
createExpression in interface ExpressionManagerpublic void setExpressionFactory(ExpressionFactory expressionFactory)
public ELContext getElContext(Map<String,Object> variables)
getElContext in interface ExpressionManagerprotected FlowableElContext createElContext(Map<String,Object> variables)
protected ELResolver createElResolver(Map<String,Object> variables)
public Map<Object,Object> getBeans()
getBeans in interface ExpressionManagerpublic void setBeans(Map<Object,Object> beans)
setBeans in interface ExpressionManagerpublic List<FlowableFunctionDelegate> getFunctionDelegates()
getFunctionDelegates in interface ExpressionManagerpublic void setFunctionDelegates(List<FlowableFunctionDelegate> functionDelegates)
setFunctionDelegates in interface ExpressionManagerCopyright © 2017 Flowable. All rights reserved.