Package org.camunda.bpm.dmn.engine.impl
Class DefaultDmnEngine
java.lang.Object
org.camunda.bpm.dmn.engine.impl.DefaultDmnEngine
- All Implemented Interfaces:
DmnEngine
-
Field Summary
Modifier and TypeFieldDescriptionprotected DefaultDmnEngineConfiguration
protected static final DmnEngineLogger
protected DmnTransformer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionevaluateDecision
(String decisionKey, InputStream inputStream, Map<String, Object> variables) Evaluates the decision with the given key in a DMN decision model.evaluateDecision
(String decisionKey, InputStream inputStream, VariableContext variableContext) Evaluates the decision with the given key in a DMN decision model.evaluateDecision
(String decisionKey, DmnModelInstance dmnModelInstance, Map<String, Object> variables) Evaluates the decision with the given key in a DMN decision model.evaluateDecision
(String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext) Evaluates the decision with the given key in a DMN decision model.evaluateDecision
(DmnDecision decision, Map<String, Object> variables) Evaluates a decision.evaluateDecision
(DmnDecision decision, VariableContext variableContext) Evaluates a decision.evaluateDecisionTable
(String decisionKey, InputStream inputStream, Map<String, Object> variables) Evaluates the decision with the given key in a DMN decision model.evaluateDecisionTable
(String decisionKey, InputStream inputStream, VariableContext variableContext) Evaluates the decision with the given key in a DMN decision model.evaluateDecisionTable
(String decisionKey, DmnModelInstance dmnModelInstance, Map<String, Object> variables) Evaluates the decision with the given key in a DMN decision model.evaluateDecisionTable
(String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext) Evaluates the decision with the given key in a DMN decision model.evaluateDecisionTable
(DmnDecision decision, Map<String, Object> variables) Evaluates a decision which is implemented as decision table.evaluateDecisionTable
(DmnDecision decision, VariableContext variableContext) Evaluates a decision which is implemented as decision table.The configuration of this engine.parseDecision
(String decisionKey, InputStream inputStream) Parse the decision with the given key in a DMN decision model.parseDecision
(String decisionKey, DmnModelInstance dmnModelInstance) Parse the decision with the given key in a DMN decision model.parseDecisionRequirementsGraph
(InputStream inputStream) Parse the decision requirements graph in a DMN decision model.parseDecisionRequirementsGraph
(DmnModelInstance dmnModelInstance) Parse the decision requirements graph in a DMN decision model.parseDecisions
(InputStream inputStream) Parse all decisions in a DMN decision model.parseDecisions
(DmnModelInstance dmnModelInstance) Parse all decisions in a DMN decision model.
-
Field Details
-
LOG
-
dmnEngineConfiguration
-
transformer
-
-
Constructor Details
-
DefaultDmnEngine
-
-
Method Details
-
getConfiguration
Description copied from interface:DmnEngine
The configuration of this engine.- Specified by:
getConfiguration
in interfaceDmnEngine
- Returns:
- the DMN engine configuration
-
parseDecisions
Description copied from interface:DmnEngine
Parse all decisions in a DMN decision model.- Specified by:
parseDecisions
in interfaceDmnEngine
- Parameters:
inputStream
- theInputStream
of the DMN file- Returns:
- a list of the
DmnDecision
s of the DMN file
-
parseDecisions
Description copied from interface:DmnEngine
Parse all decisions in a DMN decision model.- Specified by:
parseDecisions
in interfaceDmnEngine
- Parameters:
dmnModelInstance
- theDmnModelInstance
of the DMN decision model- Returns:
- a list of the
DmnDecision
s of the DMN file
-
parseDecision
Description copied from interface:DmnEngine
Parse the decision with the given key in a DMN decision model. The key is theid
attribute of the decision in the DMN XML file.- Specified by:
parseDecision
in interfaceDmnEngine
- Parameters:
decisionKey
- the key of the decision to parseinputStream
- theInputStream
of the DMN file- Returns:
- the first
DmnDecision
of the DMN file
-
parseDecision
Description copied from interface:DmnEngine
Parse the decision with the given key in a DMN decision model. The key is theid
attribute of the decision in the DMN XML file.- Specified by:
parseDecision
in interfaceDmnEngine
- Parameters:
decisionKey
- the key of the decision to parsedmnModelInstance
- theDmnModelInstance
of the DMN decision model- Returns:
- the first
DmnDecision
of the DMN file
-
parseDecisionRequirementsGraph
Description copied from interface:DmnEngine
Parse the decision requirements graph in a DMN decision model.- Specified by:
parseDecisionRequirementsGraph
in interfaceDmnEngine
- Parameters:
inputStream
- theInputStream
of the DMN file- Returns:
- a list of the
DmnDecision
s of the DMN file
-
parseDecisionRequirementsGraph
public DmnDecisionRequirementsGraph parseDecisionRequirementsGraph(DmnModelInstance dmnModelInstance) Description copied from interface:DmnEngine
Parse the decision requirements graph in a DMN decision model.- Specified by:
parseDecisionRequirementsGraph
in interfaceDmnEngine
- Parameters:
dmnModelInstance
- theDmnModelInstance
of the DMN decision model- Returns:
- a list of the
DmnDecision
s of the DMN file
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(DmnDecision decision, Map<String, Object> variables) Description copied from interface:DmnEngine
Evaluates a decision which is implemented as decision table.- Specified by:
evaluateDecisionTable
in interfaceDmnEngine
- Parameters:
decision
- theDmnDecision
to evaluatevariables
- the variables which are available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResult
of this evaluation - See Also:
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(DmnDecision decision, VariableContext variableContext) Description copied from interface:DmnEngine
Evaluates a decision which is implemented as decision table.- Specified by:
evaluateDecisionTable
in interfaceDmnEngine
- Parameters:
decision
- theDmnDecision
to evaluatevariableContext
- the variables context which is available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResult
of this evaluation - See Also:
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(String decisionKey, InputStream inputStream, Map<String, Object> variables) Description copied from interface:DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is theid
attribute of the decision in the DMN XML file.- Specified by:
evaluateDecisionTable
in interfaceDmnEngine
- Parameters:
decisionKey
- the key of the decision to evaluatedinputStream
- theInputStream
of the DMN filevariables
- the variables which are available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResult
of this evaluation - See Also:
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(String decisionKey, InputStream inputStream, VariableContext variableContext) Description copied from interface:DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is theid
attribute of the decision in the DMN XML file.- Specified by:
evaluateDecisionTable
in interfaceDmnEngine
- Parameters:
decisionKey
- the key of the decision to evaluatedinputStream
- theInputStream
of the DMN filevariableContext
- the variables context which is available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResult
of this evaluation - See Also:
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(String decisionKey, DmnModelInstance dmnModelInstance, Map<String, Object> variables) Description copied from interface:DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is theid
attribute of the decision in the DMN XML file.- Specified by:
evaluateDecisionTable
in interfaceDmnEngine
- Parameters:
decisionKey
- the key of the decision to evaluateddmnModelInstance
- theDmnModelInstance
of the DMN decision modelvariables
- the variables which are available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResult
of this evaluation - See Also:
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext) Description copied from interface:DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is theid
attribute of the decision in the DMN XML file.- Specified by:
evaluateDecisionTable
in interfaceDmnEngine
- Parameters:
decisionKey
- the key of the decision to evaluateddmnModelInstance
- theDmnModelInstance
of the DMN decision modelvariableContext
- the variables context which is available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResult
of this evaluation - See Also:
-
evaluateDecision
Description copied from interface:DmnEngine
Evaluates a decision. The decision can be implemented as any kind of supported decision logic (e.g., decision table, literal expression).- Specified by:
evaluateDecision
in interfaceDmnEngine
- Parameters:
decision
- theDmnDecision
to evaluatevariables
- the variables which are available during the evaluation of expressions in the decision- Returns:
- the
DmnDecisionResult
of this evaluation
-
evaluateDecision
Description copied from interface:DmnEngine
Evaluates a decision. The decision can be implemented as any kind of supported decision logic (e.g., decision table, literal expression).- Specified by:
evaluateDecision
in interfaceDmnEngine
- Parameters:
decision
- theDmnDecision
to evaluatevariableContext
- the variables context which is available during the evaluation of expressions in the table- Returns:
- the
DmnDecisionResult
of this evaluation
-
evaluateDecision
public DmnDecisionResult evaluateDecision(String decisionKey, InputStream inputStream, Map<String, Object> variables) Description copied from interface:DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is theid
attribute of the decision in the DMN XML file. The decision can be implemented as any kind of supported decision logic (e.g., decision table, literal expression).- Specified by:
evaluateDecision
in interfaceDmnEngine
- Parameters:
decisionKey
- the key of the decision to evaluatedinputStream
- theInputStream
of the DMN filevariables
- the variables which are available during the evaluation of expressions in the decision- Returns:
- the
DmnDecisionResult
of this evaluation
-
evaluateDecision
public DmnDecisionResult evaluateDecision(String decisionKey, InputStream inputStream, VariableContext variableContext) Description copied from interface:DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is theid
attribute of the decision in the DMN XML file. The decision can be implemented as any kind of supported decision logic (e.g., decision table, literal expression).- Specified by:
evaluateDecision
in interfaceDmnEngine
- Parameters:
decisionKey
- the key of the decision to evaluatedinputStream
- theInputStream
of the DMN filevariableContext
- the variables context which is available during the evaluation of expressions in the decision- Returns:
- the
DmnDecisionResult
of this evaluation
-
evaluateDecision
public DmnDecisionResult evaluateDecision(String decisionKey, DmnModelInstance dmnModelInstance, Map<String, Object> variables) Description copied from interface:DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is theid
attribute of the decision in the DMN XML file. The decision can be implemented as any kind of supported decision logic (e.g., decision table, literal expression).- Specified by:
evaluateDecision
in interfaceDmnEngine
- Parameters:
decisionKey
- the key of the decision to evaluateddmnModelInstance
- theDmnModelInstance
of the DMN decision modelvariables
- the variables which are available during the evaluation of expressions in the decision- Returns:
- the
DmnDecisionResult
of this evaluation
-
evaluateDecision
public DmnDecisionResult evaluateDecision(String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext) Description copied from interface:DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is theid
attribute of the decision in the DMN XML file. The decision can be implemented as any kind of supported decision logic (e.g., decision table, literal expression).- Specified by:
evaluateDecision
in interfaceDmnEngine
- Parameters:
decisionKey
- the key of the decision to evaluateddmnModelInstance
- theDmnModelInstance
of the DMN decision modelvariableContext
- the variables context which is available during the evaluation of expressions in the decision- Returns:
- the
DmnDecisionResult
of this evaluation
-