public class DecisionTableFunction extends BaseFEELFunction
| Constructor and Description |
|---|
DecisionTableFunction() |
| Modifier and Type | Method and Description |
|---|---|
Object |
invoke(Object outputs,
Object inputExpressionList,
List<?> inputValuesList,
Object outputValues,
List<List> ruleList,
String hitPolicy,
Object defaultOutputValue) |
protected List<List<UnaryTest>> |
objectToUnaryTestList(List<List<Object>> values) |
static DTDecisionRule |
toDecisionRule(int index,
List<?> rule,
int inputSize) |
getName, getParameterNames, getSymbol, invoke, invokeReflectively, isCustomFunction, setNamepublic Object invoke(Object outputs, Object inputExpressionList, List<?> inputValuesList, Object outputValues, List<List> ruleList, String hitPolicy, Object defaultOutputValue)
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.protected List<List<UnaryTest>> objectToUnaryTestList(List<List<Object>> values)
public static DTDecisionRule toDecisionRule(int index, List<?> rule, int inputSize)
Copyright © 2001–2017 JBoss by Red Hat. All rights reserved.