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 DefaultDmnEngineConfigurationdmnEngineConfigurationprotected static DmnEngineLoggerLOGprotected DmnTransformertransformer
-
Constructor Summary
Constructors Constructor Description DefaultDmnEngine(DefaultDmnEngineConfiguration dmnEngineConfiguration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DmnDecisionResultevaluateDecision(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.DmnDecisionResultevaluateDecision(java.lang.String decisionKey, java.io.InputStream inputStream, VariableContext variableContext)Evaluates the decision with the given key in a DMN decision model.DmnDecisionResultevaluateDecision(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.DmnDecisionResultevaluateDecision(java.lang.String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext)Evaluates the decision with the given key in a DMN decision model.DmnDecisionResultevaluateDecision(DmnDecision decision, java.util.Map<java.lang.String,java.lang.Object> variables)Evaluates a decision.DmnDecisionResultevaluateDecision(DmnDecision decision, VariableContext variableContext)Evaluates a decision.DmnDecisionTableResultevaluateDecisionTable(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.DmnDecisionTableResultevaluateDecisionTable(java.lang.String decisionKey, java.io.InputStream inputStream, VariableContext variableContext)Evaluates the decision with the given key in a DMN decision model.DmnDecisionTableResultevaluateDecisionTable(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.DmnDecisionTableResultevaluateDecisionTable(java.lang.String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext)Evaluates the decision with the given key in a DMN decision model.DmnDecisionTableResultevaluateDecisionTable(DmnDecision decision, java.util.Map<java.lang.String,java.lang.Object> variables)Evaluates a decision which is implemented as decision table.DmnDecisionTableResultevaluateDecisionTable(DmnDecision decision, VariableContext variableContext)Evaluates a decision which is implemented as decision table.DmnEngineConfigurationgetConfiguration()The configuration of this engine.DmnDecisionparseDecision(java.lang.String decisionKey, java.io.InputStream inputStream)Parse the decision with the given key in a DMN decision model.DmnDecisionparseDecision(java.lang.String decisionKey, DmnModelInstance dmnModelInstance)Parse the decision with the given key in a DMN decision model.DmnDecisionRequirementsGraphparseDecisionRequirementsGraph(java.io.InputStream inputStream)Parse the decision requirements graph in a DMN decision model.DmnDecisionRequirementsGraphparseDecisionRequirementsGraph(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:DmnEngineThe configuration of this engine.- Specified by:
getConfigurationin interfaceDmnEngine- Returns:
- the DMN engine configuration
-
parseDecisions
public java.util.List<DmnDecision> parseDecisions(java.io.InputStream inputStream)
Description copied from interface:DmnEngineParse all decisions in a DMN decision model.- Specified by:
parseDecisionsin interfaceDmnEngine- Parameters:
inputStream- theInputStreamof the DMN file- Returns:
- a list of the
DmnDecisions of the DMN file
-
parseDecisions
public java.util.List<DmnDecision> parseDecisions(DmnModelInstance dmnModelInstance)
Description copied from interface:DmnEngineParse all decisions in a DMN decision model.- Specified by:
parseDecisionsin interfaceDmnEngine- Parameters:
dmnModelInstance- theDmnModelInstanceof the DMN decision model- Returns:
- a list of the
DmnDecisions of the DMN file
-
parseDecision
public DmnDecision parseDecision(java.lang.String decisionKey, java.io.InputStream inputStream)
Description copied from interface:DmnEngineParse the decision with the given key in a DMN decision model. The key is theidattribute of the decision in the DMN XML file.- Specified by:
parseDecisionin interfaceDmnEngine- Parameters:
decisionKey- the key of the decision to parseinputStream- theInputStreamof the DMN file- Returns:
- the first
DmnDecisionof the DMN file
-
parseDecision
public DmnDecision parseDecision(java.lang.String decisionKey, DmnModelInstance dmnModelInstance)
Description copied from interface:DmnEngineParse the decision with the given key in a DMN decision model. The key is theidattribute of the decision in the DMN XML file.- Specified by:
parseDecisionin interfaceDmnEngine- Parameters:
decisionKey- the key of the decision to parsedmnModelInstance- theDmnModelInstanceof the DMN decision model- Returns:
- the first
DmnDecisionof the DMN file
-
parseDecisionRequirementsGraph
public DmnDecisionRequirementsGraph parseDecisionRequirementsGraph(java.io.InputStream inputStream)
Description copied from interface:DmnEngineParse the decision requirements graph in a DMN decision model.- Specified by:
parseDecisionRequirementsGraphin interfaceDmnEngine- Parameters:
inputStream- theInputStreamof the DMN file- Returns:
- a list of the
DmnDecisions of the DMN file
-
parseDecisionRequirementsGraph
public DmnDecisionRequirementsGraph parseDecisionRequirementsGraph(DmnModelInstance dmnModelInstance)
Description copied from interface:DmnEngineParse the decision requirements graph in a DMN decision model.- Specified by:
parseDecisionRequirementsGraphin interfaceDmnEngine- Parameters:
dmnModelInstance- theDmnModelInstanceof the DMN decision model- Returns:
- a list of the
DmnDecisions of the DMN file
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(DmnDecision decision, java.util.Map<java.lang.String,java.lang.Object> variables)
Description copied from interface:DmnEngineEvaluates a decision which is implemented as decision table.- Specified by:
evaluateDecisionTablein interfaceDmnEngine- Parameters:
decision- theDmnDecisionto evaluatevariables- the variables which are available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResultof this evaluation - See Also:
DmnEngine.evaluateDecision(DmnDecision, Map)
-
evaluateDecisionTable
public DmnDecisionTableResult evaluateDecisionTable(DmnDecision decision, VariableContext variableContext)
Description copied from interface:DmnEngineEvaluates a decision which is implemented as decision table.- Specified by:
evaluateDecisionTablein interfaceDmnEngine- Parameters:
decision- theDmnDecisionto evaluatevariableContext- the variables context which is available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResultof 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:DmnEngineEvaluates the decision with the given key in a DMN decision model. The key is theidattribute of the decision in the DMN XML file.- Specified by:
evaluateDecisionTablein interfaceDmnEngine- Parameters:
decisionKey- the key of the decision to evaluatedinputStream- theInputStreamof the DMN filevariables- the variables which are available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResultof 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:DmnEngineEvaluates the decision with the given key in a DMN decision model. The key is theidattribute of the decision in the DMN XML file.- Specified by:
evaluateDecisionTablein interfaceDmnEngine- Parameters:
decisionKey- the key of the decision to evaluatedinputStream- theInputStreamof the DMN filevariableContext- the variables context which is available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResultof 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:DmnEngineEvaluates the decision with the given key in a DMN decision model. The key is theidattribute of the decision in the DMN XML file.- Specified by:
evaluateDecisionTablein interfaceDmnEngine- Parameters:
decisionKey- the key of the decision to evaluateddmnModelInstance- theDmnModelInstanceof the DMN decision modelvariables- the variables which are available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResultof 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:DmnEngineEvaluates the decision with the given key in a DMN decision model. The key is theidattribute of the decision in the DMN XML file.- Specified by:
evaluateDecisionTablein interfaceDmnEngine- Parameters:
decisionKey- the key of the decision to evaluateddmnModelInstance- theDmnModelInstanceof the DMN decision modelvariableContext- the variables context which is available during the evaluation of expressions in the decision table- Returns:
- the
DmnDecisionTableResultof 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:DmnEngineEvaluates a decision. The decision can be implemented as any kind of supported decision logic (e.g., decision table, literal expression).- Specified by:
evaluateDecisionin interfaceDmnEngine- Parameters:
decision- theDmnDecisionto evaluatevariables- the variables which are available during the evaluation of expressions in the decision- Returns:
- the
DmnDecisionResultof this evaluation
-
evaluateDecision
public DmnDecisionResult evaluateDecision(DmnDecision decision, VariableContext variableContext)
Description copied from interface:DmnEngineEvaluates a decision. The decision can be implemented as any kind of supported decision logic (e.g., decision table, literal expression).- Specified by:
evaluateDecisionin interfaceDmnEngine- Parameters:
decision- theDmnDecisionto evaluatevariableContext- the variables context which is available during the evaluation of expressions in the table- Returns:
- the
DmnDecisionResultof 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:DmnEngineEvaluates the decision with the given key in a DMN decision model. The key is theidattribute 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:
evaluateDecisionin interfaceDmnEngine- Parameters:
decisionKey- the key of the decision to evaluatedinputStream- theInputStreamof the DMN filevariables- the variables which are available during the evaluation of expressions in the decision- Returns:
- the
DmnDecisionResultof this evaluation
-
evaluateDecision
public DmnDecisionResult evaluateDecision(java.lang.String decisionKey, java.io.InputStream inputStream, VariableContext variableContext)
Description copied from interface:DmnEngineEvaluates the decision with the given key in a DMN decision model. The key is theidattribute 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:
evaluateDecisionin interfaceDmnEngine- Parameters:
decisionKey- the key of the decision to evaluatedinputStream- theInputStreamof the DMN filevariableContext- the variables context which is available during the evaluation of expressions in the decision- Returns:
- the
DmnDecisionResultof 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:DmnEngineEvaluates the decision with the given key in a DMN decision model. The key is theidattribute 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:
evaluateDecisionin interfaceDmnEngine- Parameters:
decisionKey- the key of the decision to evaluateddmnModelInstance- theDmnModelInstanceof the DMN decision modelvariables- the variables which are available during the evaluation of expressions in the decision- Returns:
- the
DmnDecisionResultof this evaluation
-
evaluateDecision
public DmnDecisionResult evaluateDecision(java.lang.String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext)
Description copied from interface:DmnEngineEvaluates the decision with the given key in a DMN decision model. The key is theidattribute 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:
evaluateDecisionin interfaceDmnEngine- Parameters:
decisionKey- the key of the decision to evaluateddmnModelInstance- theDmnModelInstanceof the DMN decision modelvariableContext- the variables context which is available during the evaluation of expressions in the decision- Returns:
- the
DmnDecisionResultof this evaluation
-
-