public class ScalaFeelEngine extends Object implements FeelEngine
Modifier and Type | Field and Description |
---|---|
protected org.camunda.feel.FeelEngine |
feelEngine |
protected static String |
INPUT_VARIABLE_NAME |
protected static ScalaFeelLogger |
LOGGER |
Constructor and Description |
---|
ScalaFeelEngine(List<FeelCustomFunctionProvider> functionProviders) |
Modifier and Type | Method and Description |
---|---|
protected org.camunda.feel.FeelEngine |
buildFeelEngine(CustomFunctionTransformer transformer,
org.camunda.feel.valuemapper.ValueMapper.CompositeValueMapper valueMapper) |
<T> T |
evaluateSimpleExpression(String expression,
VariableContext variableContext)
Evaluate a FEEL simple expression
|
boolean |
evaluateSimpleUnaryTests(String expression,
String inputVariable,
VariableContext variableContext)
Evaluate a FEEL simple unary tests expression
|
protected camundajar.impl.scala.collection.immutable.List<org.camunda.feel.valuemapper.CustomValueMapper> |
getValueMappers() |
protected <T> camundajar.impl.scala.collection.immutable.List<T> |
toList(List list) |
protected <T> camundajar.impl.scala.collection.immutable.List<T> |
toScalaList(T... elements) |
protected static final String INPUT_VARIABLE_NAME
protected static final ScalaFeelLogger LOGGER
protected org.camunda.feel.FeelEngine feelEngine
public ScalaFeelEngine(List<FeelCustomFunctionProvider> functionProviders)
public <T> T evaluateSimpleExpression(String expression, VariableContext variableContext)
FeelEngine
evaluateSimpleExpression
in interface FeelEngine
T
- the expected return typeexpression
- the simple expression to evaluatevariableContext
- the variable context which are availablepublic boolean evaluateSimpleUnaryTests(String expression, String inputVariable, VariableContext variableContext)
FeelEngine
evaluateSimpleUnaryTests
in interface FeelEngine
expression
- the simple unary tests expression to evaluateinputVariable
- the name of the variable which is testedvariableContext
- the variable context are availableprotected camundajar.impl.scala.collection.immutable.List<org.camunda.feel.valuemapper.CustomValueMapper> getValueMappers()
@SafeVarargs protected final <T> camundajar.impl.scala.collection.immutable.List<T> toScalaList(T... elements)
protected <T> camundajar.impl.scala.collection.immutable.List<T> toList(List list)
protected org.camunda.feel.FeelEngine buildFeelEngine(CustomFunctionTransformer transformer, org.camunda.feel.valuemapper.ValueMapper.CompositeValueMapper valueMapper)
Copyright © 2021. All rights reserved.