Class DecisionTableFunction
- java.lang.Object
-
- org.kie.dmn.feel.runtime.functions.BaseFEELFunction
-
- org.kie.dmn.feel.runtime.functions.DecisionTableFunction
-
- All Implemented Interfaces:
FEELFunction
public class DecisionTableFunction extends BaseFEELFunction
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.kie.dmn.feel.runtime.FEELFunction
FEELFunction.Param
-
-
Constructor Summary
Constructors Constructor Description DecisionTableFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectinvoke(EvaluationContext ctx, java.lang.Object outputs, java.lang.Object inputExpressionList, java.util.List<?> inputValuesList, java.lang.Object outputValues, java.util.List<java.util.List> ruleList, java.lang.String hitPolicy, java.lang.Object defaultOutputValue)protected java.util.List<java.util.List<UnaryTest>>objectToUnaryTestList(EvaluationContext ctx, java.util.List<java.util.List<java.lang.Object>> values)-
Methods inherited from class org.kie.dmn.feel.runtime.functions.BaseFEELFunction
getName, getParameters, getSymbol, invoke, invokeReflectively, isCustomFunction, setName
-
-
-
-
Method Detail
-
invoke
public java.lang.Object invoke(EvaluationContext ctx, java.lang.Object outputs, java.lang.Object inputExpressionList, java.util.List<?> inputValuesList, java.lang.Object outputValues, java.util.List<java.util.List> ruleList, java.lang.String hitPolicy, java.lang.Object defaultOutputValue)
- Parameters:
inputExpressionList- a list of the N>=0 input expressions in display orderinputValuesList- * a list of N input values, corresponding to the input expressions. Each list element is a unary tests literal (see below).outputs- * a name (a string matching grammar rule 27) or a list of M>0 namesoutputValues- * if outputs is a list, then output values is a list of lists of values, one list per output; else output values is a list of values for the one output. Each value is a string.ruleList- a list of R>0 rules. A rule is a list of N input entries followed by M output entries. An input entry is a unary tests literal. An output entry is an expression represented as a string.hitPolicy- * one of: "U", "A", “P”, “F”, "R", "O", "C", "C+", "C#", "C<", “C>” (default is "U")defaultOutputValue- * if outputs is a list, then default output value is a context with entries composed of outputs and output values; else default output value is one of the output values.
-
objectToUnaryTestList
protected java.util.List<java.util.List<UnaryTest>> objectToUnaryTestList(EvaluationContext ctx, java.util.List<java.util.List<java.lang.Object>> values)
-
-