Class FeelEngineImpl
- java.lang.Object
-
- org.camunda.bpm.dmn.feel.impl.juel.FeelEngineImpl
-
- All Implemented Interfaces:
FeelEngine
public class FeelEngineImpl extends Object implements FeelEngine
-
-
Field Summary
Fields Modifier and Type Field 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 Summary
Constructors Constructor Description FeelEngineImpl(FeelToJuelTransform transform, javax.el.ExpressionFactory expressionFactory, ElContextFactory elContextFactory, org.camunda.commons.utils.cache.Cache<TransformExpressionCacheKey,String> transformExpressionCache)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected javax.el.ELContext
createContext(VariableContext variableContext)
<T> T
evaluateSimpleExpression(String simpleExpression, VariableContext variableContext)
Evaluate a FEEL simple expressionboolean
evaluateSimpleUnaryTests(String simpleUnaryTests, String inputName, VariableContext variableContext)
Evaluate a FEEL simple unary tests expressionprotected javax.el.ValueExpression
transformSimpleUnaryTests(String simpleUnaryTests, String inputName, javax.el.ELContext elContext)
protected String
transformToJuelExpression(String simpleUnaryTests, String inputName)
-
-
-
Field Detail
-
LOG
public static final FeelEngineLogger LOG
-
transform
protected FeelToJuelTransform transform
-
expressionFactory
protected javax.el.ExpressionFactory expressionFactory
-
elContextFactory
protected ElContextFactory elContextFactory
-
transformExpressionCache
protected org.camunda.commons.utils.cache.Cache<TransformExpressionCacheKey,String> transformExpressionCache
-
-
Constructor Detail
-
FeelEngineImpl
public FeelEngineImpl(FeelToJuelTransform transform, javax.el.ExpressionFactory expressionFactory, ElContextFactory elContextFactory, org.camunda.commons.utils.cache.Cache<TransformExpressionCacheKey,String> transformExpressionCache)
-
-
Method Detail
-
evaluateSimpleExpression
public <T> T evaluateSimpleExpression(String simpleExpression, VariableContext variableContext)
Description copied from interface:FeelEngine
Evaluate a FEEL simple expression- Specified by:
evaluateSimpleExpression
in interfaceFeelEngine
- Type Parameters:
T
- the expected return type- Parameters:
simpleExpression
- the simple expression to evaluatevariableContext
- the variable context which are available- Returns:
- the result of the simple expression
-
evaluateSimpleUnaryTests
public boolean evaluateSimpleUnaryTests(String simpleUnaryTests, String inputName, VariableContext variableContext)
Description copied from interface:FeelEngine
Evaluate a FEEL simple unary tests expression- Specified by:
evaluateSimpleUnaryTests
in interfaceFeelEngine
- Parameters:
simpleUnaryTests
- the simple unary tests expression to evaluateinputName
- the name of the variable which is testedvariableContext
- the variable context are available- Returns:
- the result of the simple unary tests expression
-
createContext
protected javax.el.ELContext createContext(VariableContext variableContext)
-
transformSimpleUnaryTests
protected javax.el.ValueExpression transformSimpleUnaryTests(String simpleUnaryTests, String inputName, javax.el.ELContext elContext)
-
-