Class FeelEngineImpl
java.lang.Object
org.camunda.bpm.dmn.feel.impl.juel.FeelEngineImpl
- All Implemented Interfaces:
FeelEngine
-
Field Summary
Modifier and TypeFieldDescriptionprotected ElContextFactory
protected ExpressionFactory
static final FeelEngineLogger
protected FeelToJuelTransform
protected Cache<TransformExpressionCacheKey,
String> -
Constructor Summary
ConstructorDescriptionFeelEngineImpl
(FeelToJuelTransform transform, ExpressionFactory expressionFactory, ElContextFactory elContextFactory, Cache<TransformExpressionCacheKey, String> transformExpressionCache) -
Method Summary
Modifier and TypeMethodDescriptionprotected 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 ValueExpression
transformSimpleUnaryTests
(String simpleUnaryTests, String inputName, ELContext elContext) protected String
transformToJuelExpression
(String simpleUnaryTests, String inputName)
-
Field Details
-
LOG
-
transform
-
expressionFactory
protected ExpressionFactory expressionFactory -
elContextFactory
-
transformExpressionCache
-
-
Constructor Details
-
FeelEngineImpl
public FeelEngineImpl(FeelToJuelTransform transform, ExpressionFactory expressionFactory, ElContextFactory elContextFactory, Cache<TransformExpressionCacheKey, String> transformExpressionCache)
-
-
Method Details
-
evaluateSimpleExpression
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
-
transformSimpleUnaryTests
-
transformToJuelExpression
-