Package org.camunda.bpm.dmn.engine.impl
Class DefaultDmnDecisionContext
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.DefaultDmnDecisionContext
-
public class DefaultDmnDecisionContext extends java.lang.Object
Context which evaluates a decision on a given input
-
-
Field Summary
Fields Modifier and Type Field Description protected static HitPolicyEntry
COLLECT_HIT_POLICY
protected java.util.Map<java.lang.Class<? extends DmnDecisionLogic>,DmnDecisionLogicEvaluationHandler>
evaluationHandlers
protected java.util.List<DmnDecisionEvaluationListener>
evaluationListeners
protected static DmnEngineLogger
LOG
protected static HitPolicyEntry
RULE_ORDER_HIT_POLICY
-
Constructor Summary
Constructors Constructor Description DefaultDmnDecisionContext(DefaultDmnEngineConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addResultToVariableContext(DmnDecisionResult evaluatedResult, VariableMap variableMap, DmnDecision evaluatedDecision)
protected void
buildDecisionTree(DmnDecision decision, java.util.List<DmnDecision> requiredDecisions)
protected VariableMap
buildVariableMapFromVariableContext(VariableContext variableContext)
DmnDecisionResult
evaluateDecision(DmnDecision decision, VariableContext variableContext)
Evaluate a decision with the givenVariableContext
protected void
generateDecisionEvaluationEvent(java.util.List<DmnDecisionLogicEvaluationEvent> evaluatedEvents)
protected DmnDecisionLogicEvaluationHandler
getDecisionEvaluationHandler(DmnDecision decision)
protected boolean
isDecisionTableWithCollectOrRuleOrderHitPolicy(DmnDecision evaluatedDecision)
-
-
-
Field Detail
-
LOG
protected static final DmnEngineLogger LOG
-
COLLECT_HIT_POLICY
protected static final HitPolicyEntry COLLECT_HIT_POLICY
-
RULE_ORDER_HIT_POLICY
protected static final HitPolicyEntry RULE_ORDER_HIT_POLICY
-
evaluationListeners
protected final java.util.List<DmnDecisionEvaluationListener> evaluationListeners
-
evaluationHandlers
protected final java.util.Map<java.lang.Class<? extends DmnDecisionLogic>,DmnDecisionLogicEvaluationHandler> evaluationHandlers
-
-
Constructor Detail
-
DefaultDmnDecisionContext
public DefaultDmnDecisionContext(DefaultDmnEngineConfiguration configuration)
-
-
Method Detail
-
evaluateDecision
public DmnDecisionResult evaluateDecision(DmnDecision decision, VariableContext variableContext)
Evaluate a decision with the givenVariableContext
- Parameters:
decision
- the decision to evaluatevariableContext
- the available variable context- Returns:
- the result of the decision evaluation
-
buildVariableMapFromVariableContext
protected VariableMap buildVariableMapFromVariableContext(VariableContext variableContext)
-
buildDecisionTree
protected void buildDecisionTree(DmnDecision decision, java.util.List<DmnDecision> requiredDecisions)
-
getDecisionEvaluationHandler
protected DmnDecisionLogicEvaluationHandler getDecisionEvaluationHandler(DmnDecision decision)
-
addResultToVariableContext
protected void addResultToVariableContext(DmnDecisionResult evaluatedResult, VariableMap variableMap, DmnDecision evaluatedDecision)
-
isDecisionTableWithCollectOrRuleOrderHitPolicy
protected boolean isDecisionTableWithCollectOrRuleOrderHitPolicy(DmnDecision evaluatedDecision)
-
generateDecisionEvaluationEvent
protected void generateDecisionEvaluationEvent(java.util.List<DmnDecisionLogicEvaluationEvent> evaluatedEvents)
-
-