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,
org.camunda.bpm.engine.variable.VariableMap variableMap,
DmnDecision evaluatedDecision) |
protected void |
buildDecisionTree(DmnDecision decision,
List<DmnDecision> requiredDecisions) |
protected org.camunda.bpm.engine.variable.VariableMap |
buildVariableMapFromVariableContext(org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
DmnDecisionResult |
evaluateDecision(DmnDecision decision,
org.camunda.bpm.engine.variable.context.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, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
VariableContext
decision
- the decision to evaluatevariableContext
- the available variable contextprotected org.camunda.bpm.engine.variable.VariableMap buildVariableMapFromVariableContext(org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected void buildDecisionTree(DmnDecision decision, List<DmnDecision> requiredDecisions)
protected DmnDecisionLogicEvaluationHandler getDecisionEvaluationHandler(DmnDecision decision)
protected void addResultToVariableContext(DmnDecisionResult evaluatedResult, org.camunda.bpm.engine.variable.VariableMap variableMap, DmnDecision evaluatedDecision)
protected boolean isDecisionTableWithCollectOrRuleOrderHitPolicy(DmnDecision evaluatedDecision)
protected void generateDecisionEvaluationEvent(List<DmnDecisionLogicEvaluationEvent> evaluatedEvents)
Copyright © 2017. All rights reserved.