public class DefaultDmnDecisionContext extends Object
Modifier and Type | Field and Description |
---|---|
protected static HitPolicyEntry |
COLLECT_HIT_POLICY |
protected Map<Class<? extends DmnDecisionLogic>,DmnDecisionLogicEvaluationHandler> |
evaluationHandlers |
protected List<DmnDecisionEvaluationListener> |
evaluationListeners |
protected static DmnEngineLogger |
LOG |
protected static HitPolicyEntry |
RULE_ORDER_HIT_POLICY |
Constructor and Description |
---|
DefaultDmnDecisionContext(DefaultDmnEngineConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected void |
addResultToVariableContext(DmnDecisionResult evaluatedResult,
VariableMap variableMap,
DmnDecision evaluatedDecision) |
protected void |
buildDecisionTree(DmnDecision decision,
List<DmnDecision> requiredDecisions) |
protected VariableMap |
buildVariableMapFromVariableContext(VariableContext variableContext) |
DmnDecisionResult |
evaluateDecision(DmnDecision decision,
VariableContext variableContext)
Evaluate a decision with the given
VariableContext |
protected void |
generateDecisionEvaluationEvent(List<DmnDecisionLogicEvaluationEvent> evaluatedEvents) |
protected DmnDecisionLogicEvaluationHandler |
getDecisionEvaluationHandler(DmnDecision decision) |
protected boolean |
isDecisionTableWithCollectOrRuleOrderHitPolicy(DmnDecision evaluatedDecision) |
protected static final DmnEngineLogger LOG
protected static final HitPolicyEntry COLLECT_HIT_POLICY
protected static final HitPolicyEntry RULE_ORDER_HIT_POLICY
protected final List<DmnDecisionEvaluationListener> evaluationListeners
protected final Map<Class<? extends DmnDecisionLogic>,DmnDecisionLogicEvaluationHandler> evaluationHandlers
public DefaultDmnDecisionContext(DefaultDmnEngineConfiguration configuration)
public DmnDecisionResult evaluateDecision(DmnDecision decision, VariableContext variableContext)
VariableContext
decision
- the decision to evaluatevariableContext
- the available variable contextprotected VariableMap buildVariableMapFromVariableContext(VariableContext variableContext)
protected void buildDecisionTree(DmnDecision decision, List<DmnDecision> requiredDecisions)
protected DmnDecisionLogicEvaluationHandler getDecisionEvaluationHandler(DmnDecision decision)
protected void addResultToVariableContext(DmnDecisionResult evaluatedResult, VariableMap variableMap, DmnDecision evaluatedDecision)
protected boolean isDecisionTableWithCollectOrRuleOrderHitPolicy(DmnDecision evaluatedDecision)
protected void generateDecisionEvaluationEvent(List<DmnDecisionLogicEvaluationEvent> evaluatedEvents)
Copyright © 2022. All rights reserved.