public class DefaultDmnDecisionContext extends Object
Modifier and Type | Field and Description |
---|---|
protected ElProvider |
elProvider |
protected List<DmnDecisionTableEvaluationListener> |
evaluationListeners |
protected FeelEngine |
feelEngine |
protected String |
inputEntryExpressionLanguage |
protected String |
inputExpressionExpressionLanguage |
protected static DmnEngineLogger |
LOG |
protected String |
outputEntryExpressionLanguage |
protected DmnScriptEngineResolver |
scriptEngineResolver |
Constructor and Description |
---|
DefaultDmnDecisionContext(DefaultDmnEngineConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
protected long |
calculateExecutedDecisionElements(DmnDecisionTableImpl decisionTable) |
DmnDecisionTableResult |
evaluateDecisionTable(DmnDecisionTableImpl decisionTable,
org.camunda.bpm.engine.variable.context.VariableContext variableContext)
Evaluate a decision table with the given
VariableContext |
protected Object |
evaluateExpression(String expressionLanguage,
DmnExpressionImpl expression,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected Object |
evaluateFeelSimpleExpression(DmnExpressionImpl expression,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
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 |
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) |
protected DmnDecisionTableResult |
generateDecisionTableResult(DmnDecisionTableEvaluationEvent evaluationResult) |
protected DmnDecisionTableResult |
generateDecisionTableResult(DmnDecisionTableImpl decisionTable,
DmnDecisionTableEvaluationEventImpl evaluationResult) |
protected String |
getExpressionTextForLanguage(DmnExpressionImpl expression,
String expressionLanguage) |
protected ScriptEngine |
getScriptEngineForName(String expressionLanguage) |
protected boolean |
isConditionApplicable(DmnDecisionTableInputImpl input,
DmnExpressionImpl condition,
org.camunda.bpm.engine.variable.context.VariableContext variableContext) |
protected boolean |
isElExpression(String expressionLanguage) |
protected boolean |
isFeelExpressionLanguage(String expressionLanguage) |
protected boolean |
isJuelExpression(String expressionLanguage) |
protected boolean |
isNonEmptyExpression(DmnExpressionImpl expression) |
protected void |
setEvaluationOutput(DmnDecisionTableImpl decisionTable,
List<DmnDecisionTableRuleImpl> matchingRules,
org.camunda.bpm.engine.variable.context.VariableContext variableContext,
DmnDecisionTableEvaluationEventImpl evaluationResult) |
protected static final DmnEngineLogger LOG
protected final List<DmnDecisionTableEvaluationListener> evaluationListeners
protected final DmnScriptEngineResolver scriptEngineResolver
protected final ElProvider elProvider
protected final FeelEngine feelEngine
protected final String inputExpressionExpressionLanguage
protected final String inputEntryExpressionLanguage
protected final String outputEntryExpressionLanguage
public DefaultDmnDecisionContext(DefaultDmnEngineConfiguration configuration)
public DmnDecisionTableResult evaluateDecisionTable(DmnDecisionTableImpl decisionTable, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
VariableContext
decisionTable
- the decision table to evaluatevariableContext
- the available variable contextprotected 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 DmnDecisionTableResult generateDecisionTableResult(DmnDecisionTableImpl decisionTable, DmnDecisionTableEvaluationEventImpl evaluationResult)
protected DmnDecisionTableResult generateDecisionTableResult(DmnDecisionTableEvaluationEvent evaluationResult)
protected long calculateExecutedDecisionElements(DmnDecisionTableImpl decisionTable)
protected Object evaluateInputExpression(DmnExpressionImpl expression, 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 evaluateFeelSimpleExpression(DmnExpressionImpl expression, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected Object evaluateFeelSimpleUnaryTests(DmnDecisionTableInputImpl input, DmnExpressionImpl condition, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected Object evaluateExpression(String expressionLanguage, DmnExpressionImpl expression, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
protected String getExpressionTextForLanguage(DmnExpressionImpl expression, String expressionLanguage)
protected boolean isJuelExpression(String expressionLanguage)
protected ScriptEngine getScriptEngineForName(String expressionLanguage)
protected boolean isElExpression(String expressionLanguage)
protected boolean isNonEmptyExpression(DmnExpressionImpl expression)
protected boolean isFeelExpressionLanguage(String expressionLanguage)
Copyright © 2018. All rights reserved.