Interface FeelEngine

    • Method Detail

      • evaluateSimpleExpression

        <T> T evaluateSimpleExpression​(String simpleExpression,
                                       VariableContext variableContext)
        Evaluate a FEEL simple expression
        Type Parameters:
        T - the expected return type
        Parameters:
        simpleExpression - the simple expression to evaluate
        variableContext - the variable context which are available
        Returns:
        the result of the simple expression
        Throws:
        FeelException - if the expression cannot be evaluated
      • evaluateSimpleUnaryTests

        boolean evaluateSimpleUnaryTests​(String simpleUnaryTests,
                                         String inputName,
                                         VariableContext variableContext)
        Evaluate a FEEL simple unary tests expression
        Parameters:
        simpleUnaryTests - the simple unary tests expression to evaluate
        inputName - the name of the variable which is tested
        variableContext - the variable context are available
        Returns:
        the result of the simple unary tests expression
        Throws:
        FeelException - if the expression cannot be evaluated