Package org.camunda.bpm.dmn.engine.impl
Class DefaultDmnEngine
- java.lang.Object
-
- org.camunda.bpm.dmn.engine.impl.DefaultDmnEngine
-
-
Field Summary
Fields Modifier and Type Field Description protected DefaultDmnEngineConfiguration
dmnEngineConfiguration
protected static DmnEngineLogger
LOG
protected DmnTransformer
transformer
-
Constructor Summary
Constructors Constructor Description DefaultDmnEngine(DefaultDmnEngineConfiguration dmnEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DmnDecisionResult
evaluateDecision(java.lang.String decisionKey, java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.Object> variables)
Evaluates the decision with the given key in a DMN decision model.DmnDecisionResult
evaluateDecision(java.lang.String decisionKey, java.io.InputStream inputStream, VariableContext variableContext)
Evaluates the decision with the given key in a DMN decision model.DmnDecisionResult
evaluateDecision(java.lang.String decisionKey, DmnModelInstance dmnModelInstance, java.util.Map<java.lang.String,java.lang.Object> variables)
Evaluates the decision with the given key in a DMN decision model.DmnDecisionResult
evaluateDecision(java.lang.String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext)
Evaluates the decision with the given key in a DMN decision model.DmnDecisionResult
evaluateDecision(DmnDecision decision, java.util.Map<java.lang.String,java.lang.Object> variables)
Evaluates a decision.DmnDecisionResult
evaluateDecision(DmnDecision decision, VariableContext variableContext)
Evaluates a decision.DmnDecisionTableResult
evaluateDecisionTable(java.lang.String decisionKey, java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.Object> variables)
Evaluates the decision with the given key in a DMN decision model.DmnDecisionTableResult
evaluateDecisionTable(java.lang.String decisionKey, java.io.InputStream inputStream, VariableContext variableContext)
Evaluates the decision with the given key in a DMN decision model.DmnDecisionTableResult
evaluateDecisionTable(java.lang.String decisionKey, DmnModelInstance dmnModelInstance, java.util.Map<java.lang.String,java.lang.Object> variables)
Evaluates the decision with the given key in a DMN decision model.DmnDecisionTableResult
evaluateDecisionTable(java.lang.String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext)
Evaluates the decision with the given key in a DMN decision model.DmnDecisionTableResult
evaluateDecisionTable(DmnDecision decision, java.util.Map<java.lang.String,java.lang.Object> variables)
Evaluates a decision which is implemented as decision table.DmnDecisionTableResult
evaluateDecisionTable(DmnDecision decision, VariableContext variableContext)
Evaluates a decision which is implemented as decision table.DmnEngineConfiguration
getConfiguration()
The configuration of this engine.DmnDecision
parseDecision(java.lang.String decisionKey, java.io.InputStream inputStream)
Parse the decision with the given key in a DMN decision model.DmnDecision
parseDecision(java.lang.String decisionKey, DmnModelInstance dmnModelInstance)
Parse the decision with the given key in a DMN decision model.DmnDecisionRequirementsGraph
parseDecisionRequirementsGraph(java.io.InputStream inputStream)
Parse the decision requirements graph in a DMN decision model.DmnDecisionRequirementsGraph
parseDecisionRequirementsGraph(DmnModelInstance dmnModelInstance)
Parse the decision requirements graph in a DMN decision model.java.util.List<DmnDecision>
parseDecisions(java.io.InputStream inputStream)
Parse all decisions in a DMN decision model.java.util.List<DmnDecision>
parseDecisions(DmnModelInstance dmnModelInstance)
Parse all decisions in a DMN decision model.
-
-
-
Field Detail
-
LOG
protected static final DmnEngineLogger LOG
-
dmnEngineConfiguration
protected DefaultDmnEngineConfiguration dmnEngineConfiguration
-
transformer
protected DmnTransformer transformer
-
-
Constructor Detail
-
DefaultDmnEngine
public DefaultDmnEngine(DefaultDmnEngineConfiguration dmnEngineConfiguration)
-
-
Method Detail
-
getConfiguration
public DmnEngineConfiguration getConfiguration()
Description copied from interface:DmnEngine
The configuration of this engine.- Specified by:
getConfiguration
in interfaceDmnEngine
- Returns:
- the DMN engine configuration
-
parseDecisions
public java.util.List<DmnDecision> parseDecisions(java.io.InputStream inputStream)
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
public java.util.List<DmnDecision> parseDecisions(DmnModelInstance dmnModelInstance)
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
public DmnDecision parseDecision(java.lang.String decisionKey, java.io.InputStream inputStream)
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
public DmnDecision parseDecision(java.lang.String decisionKey, DmnModelInstance dmnModelInstance)
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
public DmnDecisionRequirementsGraph parseDecisionRequirementsGraph(java.io.InputStream inputStream)
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, java.util.Map<java.lang.String,java.lang.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:
DmnEngine.evaluateDecision(DmnDecision, Map)
-
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:
DmnEngine.evaluateDecision(DmnDecision, VariableContext)
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(java.lang.String decisionKey, java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.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:
DmnEngine.evaluateDecision(String, InputStream, Map)
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(java.lang.String decisionKey, java.io.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:
DmnEngine.evaluateDecision(String, InputStream, VariableContext)
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(java.lang.String decisionKey, DmnModelInstance dmnModelInstance, java.util.Map<java.lang.String,java.lang.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:
DmnEngine.evaluateDecision(String, DmnModelInstance, Map)
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(java.lang.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:
DmnEngine.evaluateDecision(String, DmnModelInstance, VariableContext)
-
evaluateDecision
public DmnDecisionResult evaluateDecision(DmnDecision decision, java.util.Map<java.lang.String,java.lang.Object> variables)
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
public DmnDecisionResult evaluateDecision(DmnDecision decision, VariableContext variableContext)
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(java.lang.String decisionKey, java.io.InputStream inputStream, java.util.Map<java.lang.String,java.lang.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(java.lang.String decisionKey, java.io.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(java.lang.String decisionKey, DmnModelInstance dmnModelInstance, java.util.Map<java.lang.String,java.lang.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(java.lang.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
-
-