public class DecisionTableEvaluationHandler extends Object implements DmnDecisionLogicEvaluationHandler
Modifier and Type | Field and Description |
---|---|
protected List<DmnDecisionTableEvaluationListener> |
evaluationListeners |
protected ExpressionEvaluationHandler |
expressionEvaluationHandler |
protected FeelEngine |
feelEngine |
protected String |
inputEntryExpressionLanguage |
protected String |
inputExpressionExpressionLanguage |
protected String |
outputEntryExpressionLanguage |
Constructor and Description |
---|
DecisionTableEvaluationHandler(DefaultDmnEngineConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected long |
calculateExecutedDecisionElements(DmnDecisionTableImpl decisionTable) |
DmnDecisionLogicEvaluationEvent |
evaluate(DmnDecision decision,
org.camunda.bpm.engine.variable.context.VariableContext variableContext)
Evaluate a decision with the given
VariableContext . |
protected void |
evaluateDecisionTable(DmnDecisionTableImpl decisionTable,
org.camunda.bpm.engine.variable.context.VariableContext variableContext,
DmnDecisionTableEvaluationEventImpl evaluationResult) |
protected Object |
evaluateFeelSimpleUnaryTests(DmnDecisionTableInputImpl input,
DmnExpressionImpl condition,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected DmnEvaluatedInput |
evaluateInput(DmnDecisionTableInputImpl input,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected Object |
evaluateInputEntry(DmnDecisionTableInputImpl input,
DmnExpressionImpl condition,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected Object |
evaluateInputExpression(DmnExpressionImpl expression,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected List<DmnDecisionTableRuleImpl> |
evaluateInputForAvailableRules(int conditionIdx,
DmnDecisionTableInputImpl input,
List<DmnDecisionTableRuleImpl> availableRules,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected DmnEvaluatedDecisionRule |
evaluateMatchingRule(List<DmnDecisionTableOutputImpl> decisionTableOutputs,
DmnDecisionTableRuleImpl matchingRule,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected Map<String,DmnEvaluatedOutput> |
evaluateOutputEntries(List<DmnDecisionTableOutputImpl> decisionTableOutputs,
DmnDecisionTableRuleImpl matchingRule,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected Object |
evaluateOutputEntry(DmnExpressionImpl conclusion,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
DmnDecisionResult |
generateDecisionResult(DmnDecisionLogicEvaluationEvent event)
Generates the decision evaluation result of the given event.
|
protected org.camunda.bpm.engine.variable.context.VariableContext |
getLocalVariableContext(DmnDecisionTableInputImpl input,
DmnEvaluatedInput evaluatedInput,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected boolean |
isConditionApplicable(DmnDecisionTableInputImpl input,
DmnExpressionImpl condition,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected boolean |
isNonEmptyExpression(DmnExpressionImpl expression) |
protected void |
setEvaluationOutput(DmnDecisionTableImpl decisionTable,
List<DmnDecisionTableRuleImpl> matchingRules,
org.camunda.bpm.engine.variable.context.VariableContext variableContext,
DmnDecisionTableEvaluationEventImpl evaluationResult) |
protected final ExpressionEvaluationHandler expressionEvaluationHandler
protected final FeelEngine feelEngine
protected final List<DmnDecisionTableEvaluationListener> evaluationListeners
protected final String inputExpressionExpressionLanguage
protected final String inputEntryExpressionLanguage
protected final String outputEntryExpressionLanguage
public DecisionTableEvaluationHandler(DefaultDmnEngineConfiguration configuration)
public DmnDecisionLogicEvaluationEvent evaluate(DmnDecision decision, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
DmnDecisionLogicEvaluationHandler
VariableContext
.evaluate
in interface DmnDecisionLogicEvaluationHandler
decision
- the decision to evaluatevariableContext
- the available variable contextprotected long calculateExecutedDecisionElements(DmnDecisionTableImpl decisionTable)
protected void evaluateDecisionTable(DmnDecisionTableImpl decisionTable, org.camunda.bpm.engine.variable.context.VariableContext variableContext, DmnDecisionTableEvaluationEventImpl evaluationResult)
protected DmnEvaluatedInput evaluateInput(DmnDecisionTableInputImpl input, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected List<DmnDecisionTableRuleImpl> evaluateInputForAvailableRules(int conditionIdx, DmnDecisionTableInputImpl input, List<DmnDecisionTableRuleImpl> availableRules, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected boolean isConditionApplicable(DmnDecisionTableInputImpl input, DmnExpressionImpl condition, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected void setEvaluationOutput(DmnDecisionTableImpl decisionTable, List<DmnDecisionTableRuleImpl> matchingRules, org.camunda.bpm.engine.variable.context.VariableContext variableContext, DmnDecisionTableEvaluationEventImpl evaluationResult)
protected DmnEvaluatedDecisionRule evaluateMatchingRule(List<DmnDecisionTableOutputImpl> decisionTableOutputs, DmnDecisionTableRuleImpl matchingRule, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected org.camunda.bpm.engine.variable.context.VariableContext getLocalVariableContext(DmnDecisionTableInputImpl input, DmnEvaluatedInput evaluatedInput, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected boolean isNonEmptyExpression(DmnExpressionImpl expression)
protected Object evaluateInputExpression(DmnExpressionImpl expression, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected Object evaluateInputEntry(DmnDecisionTableInputImpl input, DmnExpressionImpl condition, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected Map<String,DmnEvaluatedOutput> evaluateOutputEntries(List<DmnDecisionTableOutputImpl> decisionTableOutputs, DmnDecisionTableRuleImpl matchingRule, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected Object evaluateOutputEntry(DmnExpressionImpl conclusion, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected Object evaluateFeelSimpleUnaryTests(DmnDecisionTableInputImpl input, DmnExpressionImpl condition, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
public DmnDecisionResult generateDecisionResult(DmnDecisionLogicEvaluationEvent event)
DmnDecisionLogicEvaluationHandler
generateDecisionResult
in interface DmnDecisionLogicEvaluationHandler
event
- which represents the evaluationCopyright © 2017. All rights reserved.