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