public class DecisionTableImpl extends Object implements DecisionTable
DecisionTable.OutputClause
Constructor and Description |
---|
DecisionTableImpl(String name,
List<String> parameterNames,
List<DTInputClause> inputs,
List<DTOutputClause> outputs,
List<DTDecisionRule> decisionRules,
HitPolicy hitPolicy,
FEEL feel) |
Modifier and Type | Method and 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 result
|
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).
|
HitPolicy |
getHitPolicy() |
String |
getName() |
List<DTOutputClause> |
getOutputs() |
List<String> |
getParameterNames() |
String |
getSignature() |
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).
|
void |
setName(String name) |
public DecisionTableImpl(String name, List<String> parameterNames, List<DTInputClause> inputs, List<DTOutputClause> outputs, List<DTDecisionRule> decisionRules, HitPolicy hitPolicy, FEEL feel)
public FEELFnResult<Object> evaluate(EvaluationContext ctx, Object[] params)
ctx
- params
- these are the required information items, not to confuse with the columns of the
decision table that are expressions derived from these parameterspublic static Map<Integer,String> checkResults(List<? extends DecisionTable.OutputClause> outputs, EvaluationContext ctx, List<? extends Indexed> matches, List<Object> results)
public HitPolicy getHitPolicy()
public void setName(String name)
public String getName()
getName
in interface DecisionTable
public List<DTOutputClause> getOutputs()
getOutputs
in interface DecisionTable
public void setCompiledParameterNames(List<CompiledExpression> compiledParameterNames)
public List<CompiledExpression> getCompiledParameterNames()
public String getSignature()
Copyright © 2001–2019 JBoss by Red Hat. All rights reserved.