Class ScalaFeelEngine

  • All Implemented Interfaces:
    FeelEngine

    public class ScalaFeelEngine
    extends java.lang.Object
    implements FeelEngine
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.camunda.feel.FeelEngine buildFeelEngine​(CustomFunctionTransformer transformer, org.camunda.feel.valuemapper.ValueMapper.CompositeValueMapper valueMapper)  
      <T> T evaluateSimpleExpression​(java.lang.String expression, VariableContext variableContext)
      Evaluate a FEEL simple expression
      boolean evaluateSimpleUnaryTests​(java.lang.String expression, java.lang.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​(java.util.List list)  
      protected <T> camundajar.impl.scala.collection.immutable.List<T> toScalaList​(T... elements)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • INPUT_VARIABLE_NAME

        protected static final java.lang.String INPUT_VARIABLE_NAME
        See Also:
        Constant Field Values
      • feelEngine

        protected org.camunda.feel.FeelEngine feelEngine
    • Method Detail

      • evaluateSimpleExpression

        public <T> T evaluateSimpleExpression​(java.lang.String expression,
                                              VariableContext variableContext)
        Description copied from interface: FeelEngine
        Evaluate a FEEL simple expression
        Specified by:
        evaluateSimpleExpression in interface FeelEngine
        Type Parameters:
        T - the expected return type
        Parameters:
        expression - the simple expression to evaluate
        variableContext - the variable context which are available
        Returns:
        the result of the simple expression
      • evaluateSimpleUnaryTests

        public boolean evaluateSimpleUnaryTests​(java.lang.String expression,
                                                java.lang.String inputVariable,
                                                VariableContext variableContext)
        Description copied from interface: FeelEngine
        Evaluate a FEEL simple unary tests expression
        Specified by:
        evaluateSimpleUnaryTests in interface FeelEngine
        Parameters:
        expression - the simple unary tests expression to evaluate
        inputVariable - the name of the variable which is tested
        variableContext - the variable context are available
        Returns:
        the result of the simple unary tests expression
      • getValueMappers

        protected camundajar.impl.scala.collection.immutable.List<org.camunda.feel.valuemapper.CustomValueMapper> getValueMappers()
      • toScalaList

        @SafeVarargs
        protected final <T> camundajar.impl.scala.collection.immutable.List<T> toScalaList​(T... elements)
      • toList

        protected <T> camundajar.impl.scala.collection.immutable.List<T> toList​(java.util.List list)
      • buildFeelEngine

        protected org.camunda.feel.FeelEngine buildFeelEngine​(CustomFunctionTransformer transformer,
                                                              org.camunda.feel.valuemapper.ValueMapper.CompositeValueMapper valueMapper)