public class FeelEngineImpl extends Object implements FeelEngine
Modifier and Type | Field and Description |
---|---|
protected ElContextFactory |
elContextFactory |
protected javax.el.ExpressionFactory |
expressionFactory |
static FeelEngineLogger |
LOG |
protected FeelToJuelTransform |
transform |
protected org.camunda.commons.utils.cache.Cache<TransformExpressionCacheKey,String> |
transformExpressionCache |
Constructor and Description |
---|
FeelEngineImpl(FeelToJuelTransform transform,
javax.el.ExpressionFactory expressionFactory,
ElContextFactory elContextFactory,
org.camunda.commons.utils.cache.Cache<TransformExpressionCacheKey,String> transformExpressionCache) |
Modifier and Type | Method and Description |
---|---|
protected javax.el.ELContext |
createContext(org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
<T> T |
evaluateSimpleExpression(String simpleExpression,
org.camunda.bpm.engine.variable.context.VariableContext variableContext)
Evaluate a FEEL simple expression
|
boolean |
evaluateSimpleUnaryTests(String simpleUnaryTests,
String inputName,
org.camunda.bpm.engine.variable.context.VariableContext variableContext)
Evaluate a FEEL simple unary tests expression
|
protected javax.el.ValueExpression |
transformSimpleUnaryTests(String simpleUnaryTests,
String inputName,
javax.el.ELContext elContext) |
protected String |
transformToJuelExpression(String simpleUnaryTests,
String inputName) |
public static final FeelEngineLogger LOG
protected FeelToJuelTransform transform
protected javax.el.ExpressionFactory expressionFactory
protected ElContextFactory elContextFactory
protected org.camunda.commons.utils.cache.Cache<TransformExpressionCacheKey,String> transformExpressionCache
public FeelEngineImpl(FeelToJuelTransform transform, javax.el.ExpressionFactory expressionFactory, ElContextFactory elContextFactory, org.camunda.commons.utils.cache.Cache<TransformExpressionCacheKey,String> transformExpressionCache)
public <T> T evaluateSimpleExpression(String simpleExpression, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
FeelEngine
evaluateSimpleExpression
in interface FeelEngine
T
- the expected return typesimpleExpression
- the simple expression to evaluatevariableContext
- the variable context which are availablepublic boolean evaluateSimpleUnaryTests(String simpleUnaryTests, String inputName, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
FeelEngine
evaluateSimpleUnaryTests
in interface FeelEngine
simpleUnaryTests
- the simple unary tests expression to evaluateinputName
- the name of the variable which is testedvariableContext
- the variable context are availableprotected javax.el.ELContext createContext(org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected javax.el.ValueExpression transformSimpleUnaryTests(String simpleUnaryTests, String inputName, javax.el.ELContext elContext)
Copyright © 2018. All rights reserved.