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