Class DecisionTableImpl
- java.lang.Object
-
- org.kie.dmn.feel.runtime.decisiontables.DecisionTableImpl
-
- All Implemented Interfaces:
DecisionTable
public class DecisionTableImpl extends Object implements DecisionTable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.kie.dmn.feel.runtime.decisiontables.DecisionTable
DecisionTable.OutputClause
-
-
Constructor Summary
Constructors Constructor Description DecisionTableImpl(String name, List<String> parameterNames, List<DTInputClause> inputs, List<DTOutputClause> outputs, List<DTDecisionRule> decisionRules, HitPolicy hitPolicy, FEEL feel)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Map<Integer,String>checkResults(List<? extends DecisionTable.OutputClause> outputs, EvaluationContext ctx, List<? extends Indexed> matches, List<Object> results)FEELFnResult<Object>evaluate(EvaluationContext ctx, Object[] params)Evaluates this decision table returning the resultList<CompiledExpression>getCompiledParameterNames()This is leveraged from the DMN layer, and currently unused from a pure FEEL layer perspective (DT FEEL expression deprecated anyway from the DMN spec itself).HitPolicygetHitPolicy()StringgetName()List<DTOutputClause>getOutputs()List<String>getParameterNames()StringgetSignature()voidsetCompiledParameterNames(List<CompiledExpression> compiledParameterNames)This is leveraged from the DMN layer, and currently unused from a pure FEEL layer perspective (DT FEEL expression deprecated anyway from the DMN spec itself).voidsetName(String name)
-
-
-
Constructor Detail
-
DecisionTableImpl
public DecisionTableImpl(String name, List<String> parameterNames, List<DTInputClause> inputs, List<DTOutputClause> outputs, List<DTDecisionRule> decisionRules, HitPolicy hitPolicy, FEEL feel)
-
-
Method Detail
-
evaluate
public FEELFnResult<Object> evaluate(EvaluationContext ctx, Object[] params)
Evaluates this decision table returning the result- Parameters:
ctx-params- these are the required information items, not to confuse with the columns of the decision table that are expressions derived from these parameters- Returns:
-
checkResults
public static Map<Integer,String> checkResults(List<? extends DecisionTable.OutputClause> outputs, EvaluationContext ctx, List<? extends Indexed> matches, List<Object> results)
-
getHitPolicy
public HitPolicy getHitPolicy()
-
setName
public void setName(String name)
-
getName
public String getName()
- Specified by:
getNamein interfaceDecisionTable
-
getOutputs
public List<DTOutputClause> getOutputs()
- Specified by:
getOutputsin interfaceDecisionTable
-
setCompiledParameterNames
public void setCompiledParameterNames(List<CompiledExpression> compiledParameterNames)
This is leveraged from the DMN layer, and currently unused from a pure FEEL layer perspective (DT FEEL expression deprecated anyway from the DMN spec itself).
-
getCompiledParameterNames
public List<CompiledExpression> getCompiledParameterNames()
This is leveraged from the DMN layer, and currently unused from a pure FEEL layer perspective (DT FEEL expression deprecated anyway from the DMN spec itself).
-
getSignature
public String getSignature()
-
-