Package org.camunda.bpm.dmn.engine
Interface DmnEngine
- 
- All Known Implementing Classes:
- DefaultDmnEngine
 
 public interface DmnEngineA DMN engine which can parse DMN decision models and evaluate decisions.A new DMN engine can be build with a DMN engine configuration (see DmnEngineConfiguration.buildEngine()).
- 
- 
Method SummaryAll Methods Instance Methods Abstract 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.
 
- 
- 
- 
Method Detail- 
getConfigurationDmnEngineConfiguration getConfiguration() The configuration of this engine.- Returns:
- the DMN engine configuration
 
 - 
parseDecisionsjava.util.List<DmnDecision> parseDecisions(java.io.InputStream inputStream) Parse all decisions in a DMN decision model.- Parameters:
- inputStream- the- InputStreamof the DMN file
- Returns:
- a list of the DmnDecisions of the DMN file
- Throws:
- DmnEngineException- if an error occurs during the parsing of the decision model
 
 - 
parseDecisionsjava.util.List<DmnDecision> parseDecisions(DmnModelInstance dmnModelInstance) Parse all decisions in a DMN decision model.- Parameters:
- dmnModelInstance- the- DmnModelInstanceof the DMN decision model
- Returns:
- a list of the DmnDecisions of the DMN file
- Throws:
- DmnEngineException- if an error occurs during the parsing of the decision model
 
 - 
parseDecisionDmnDecision parseDecision(java.lang.String decisionKey, java.io.InputStream inputStream) Parse the decision with the given key in a DMN decision model. The key is theidattribute of the decision in the DMN XML file.- Parameters:
- decisionKey- the key of the decision to parse
- inputStream- the- InputStreamof the DMN file
- Returns:
- the first DmnDecisionof the DMN file
- Throws:
- DmnEngineException- if an error occurs during the parsing of the decision model
 
 - 
parseDecisionDmnDecision parseDecision(java.lang.String decisionKey, DmnModelInstance dmnModelInstance) Parse the decision with the given key in a DMN decision model. The key is theidattribute of the decision in the DMN XML file.- Parameters:
- decisionKey- the key of the decision to parse
- dmnModelInstance- the- DmnModelInstanceof the DMN decision model
- Returns:
- the first DmnDecisionof the DMN file
- Throws:
- DmnEngineException- if an error occurs during the parsing of the decision model
 
 - 
parseDecisionRequirementsGraphDmnDecisionRequirementsGraph parseDecisionRequirementsGraph(java.io.InputStream inputStream) Parse the decision requirements graph in a DMN decision model.- Parameters:
- inputStream- the- InputStreamof the DMN file
- Returns:
- a list of the DmnDecisions of the DMN file
- Throws:
- DmnEngineException- if an error occurs during the parsing of the decision model
 
 - 
parseDecisionRequirementsGraphDmnDecisionRequirementsGraph parseDecisionRequirementsGraph(DmnModelInstance dmnModelInstance) Parse the decision requirements graph in a DMN decision model.- Parameters:
- dmnModelInstance- the- DmnModelInstanceof the DMN decision model
- Returns:
- a list of the DmnDecisions of the DMN file
- Throws:
- DmnEngineException- if an error occurs during the parsing of the decision model
 
 - 
evaluateDecisionTableDmnDecisionTableResult evaluateDecisionTable(DmnDecision decision, java.util.Map<java.lang.String,java.lang.Object> variables) Evaluates a decision which is implemented as decision table.- Parameters:
- decision- the- DmnDecisionto evaluate
- variables- the variables which are available during the evaluation of expressions in the decision table
- Returns:
- the DmnDecisionTableResultof this evaluation
- Throws:
- DmnEngineException- if the decision is not implemented as decision table (see- DmnDecision.isDecisionTable()
- DmnEngineException- if an error occurs during the evaluation
- See Also:
- evaluateDecision(DmnDecision, Map)
 
 - 
evaluateDecisionTableDmnDecisionTableResult evaluateDecisionTable(DmnDecision decision, VariableContext variableContext) Evaluates a decision which is implemented as decision table.- Parameters:
- decision- the- DmnDecisionto evaluate
- variableContext- the variables context which is available during the evaluation of expressions in the decision table
- Returns:
- the DmnDecisionTableResultof this evaluation
- Throws:
- DmnEngineException- if the decision is not implemented as decision table (see- DmnDecision.isDecisionTable()
- DmnEngineException- if an error occurs during the evaluation
- See Also:
- evaluateDecision(DmnDecision, VariableContext)
 
 - 
evaluateDecisionTableDmnDecisionTableResult 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. The key is theidattribute of the decision in the DMN XML file.- Parameters:
- decisionKey- the key of the decision to evaluated
- inputStream- the- InputStreamof the DMN file
- variables- the variables which are available during the evaluation of expressions in the decision table
- Returns:
- the DmnDecisionTableResultof this evaluation
- Throws:
- DmnEngineException- if no decision is found with the given key
- DmnEngineException- if the decision is not implemented as decision table
- DmnEngineException- if an error occurs during the evaluation
- See Also:
- evaluateDecision(String, InputStream, Map)
 
 - 
evaluateDecisionTableDmnDecisionTableResult evaluateDecisionTable(java.lang.String decisionKey, java.io.InputStream inputStream, VariableContext variableContext) Evaluates the decision with the given key in a DMN decision model. The key is theidattribute of the decision in the DMN XML file.- Parameters:
- decisionKey- the key of the decision to evaluated
- inputStream- the- InputStreamof the DMN file
- variableContext- the variables context which is available during the evaluation of expressions in the decision table
- Returns:
- the DmnDecisionTableResultof this evaluation
- Throws:
- DmnEngineException- if no decision is found with the given key
- DmnEngineException- if the decision is not implemented as decision table
- DmnEngineException- if an error occurs during the evaluation
- See Also:
- evaluateDecision(String, InputStream, VariableContext)
 
 - 
evaluateDecisionTableDmnDecisionTableResult 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. The key is theidattribute of the decision in the DMN XML file.- Parameters:
- decisionKey- the key of the decision to evaluated
- dmnModelInstance- the- DmnModelInstanceof the DMN decision model
- variables- the variables which are available during the evaluation of expressions in the decision table
- Returns:
- the DmnDecisionTableResultof this evaluation
- Throws:
- DmnEngineException- if no decision is found with the given key
- DmnEngineException- if the decision is not implemented as decision table
- DmnEngineException- if an error occurs during the evaluation
- See Also:
- evaluateDecision(String, DmnModelInstance, Map)
 
 - 
evaluateDecisionTableDmnDecisionTableResult evaluateDecisionTable(java.lang.String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext) Evaluates the decision with the given key in a DMN decision model. The key is theidattribute of the decision in the DMN XML file.- Parameters:
- decisionKey- the key of the decision to evaluated
- dmnModelInstance- the- DmnModelInstanceof the DMN decision model
- variableContext- the variables context which is available during the evaluation of expressions in the decision table
- Returns:
- the DmnDecisionTableResultof this evaluation
- Throws:
- DmnEngineException- if an error occurs during the parsing of the decision model
- DmnEngineException- if no decision is found with the given key
- DmnEngineException- if the decision is not implemented as decision table
- DmnEngineException- if an error occurs during the evaluation
- See Also:
- evaluateDecision(String, DmnModelInstance, VariableContext)
 
 - 
evaluateDecisionDmnDecisionResult evaluateDecision(DmnDecision decision, java.util.Map<java.lang.String,java.lang.Object> variables) Evaluates a decision. The decision can be implemented as any kind of supported decision logic (e.g., decision table, literal expression).- Parameters:
- decision- the- DmnDecisionto evaluate
- variables- the variables which are available during the evaluation of expressions in the decision
- Returns:
- the DmnDecisionResultof this evaluation
- Throws:
- DmnEngineException- if the decision logic is not supported
- DmnEngineException- if an error occurs during the evaluation
 
 - 
evaluateDecisionDmnDecisionResult evaluateDecision(DmnDecision decision, VariableContext variableContext) Evaluates a decision. The decision can be implemented as any kind of supported decision logic (e.g., decision table, literal expression).- Parameters:
- decision- the- DmnDecisionto evaluate
- variableContext- the variables context which is available during the evaluation of expressions in the table
- Returns:
- the DmnDecisionResultof this evaluation
- Throws:
- DmnEngineException- if the decision logic is not supported
- DmnEngineException- if an error occurs during the evaluation
 
 - 
evaluateDecisionDmnDecisionResult 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. 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).- Parameters:
- decisionKey- the key of the decision to evaluated
- inputStream- the- InputStreamof the DMN file
- variables- the variables which are available during the evaluation of expressions in the decision
- Returns:
- the DmnDecisionResultof this evaluation
- Throws:
- DmnEngineException- if no decision is found with the given key
- DmnEngineException- if the decision logic is not supported
- DmnEngineException- if an error occurs during the evaluation
 
 - 
evaluateDecisionDmnDecisionResult evaluateDecision(java.lang.String decisionKey, java.io.InputStream inputStream, VariableContext variableContext) Evaluates 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).- Parameters:
- decisionKey- the key of the decision to evaluated
- inputStream- the- InputStreamof the DMN file
- variableContext- the variables context which is available during the evaluation of expressions in the decision
- Returns:
- the DmnDecisionResultof this evaluation
- Throws:
- DmnEngineException- if no decision is found with the given key
- DmnEngineException- if the decision logic is not supported
- DmnEngineException- if an error occurs during the evaluation
 
 - 
evaluateDecisionDmnDecisionResult 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. 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).- Parameters:
- decisionKey- the key of the decision to evaluated
- dmnModelInstance- the- DmnModelInstanceof the DMN decision model
- variables- the variables which are available during the evaluation of expressions in the decision
- Returns:
- the DmnDecisionResultof this evaluation
- Throws:
- DmnEngineException- if no decision is found with the given key
- DmnEngineException- if the decision logic is not supported
- DmnEngineException- if an error occurs during the evaluation
 
 - 
evaluateDecisionDmnDecisionResult evaluateDecision(java.lang.String decisionKey, DmnModelInstance dmnModelInstance, VariableContext variableContext) Evaluates 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).- Parameters:
- decisionKey- the key of the decision to evaluated
- dmnModelInstance- the- DmnModelInstanceof the DMN decision model
- variableContext- the variables context which is available during the evaluation of expressions in the decision
- Returns:
- the DmnDecisionResultof this evaluation
- Throws:
- DmnEngineException- if an error occurs during the parsing of the decision model
- DmnEngineException- if no decision is found with the given key
- DmnEngineException- if the decision logic is not supported
- DmnEngineException- if an error occurs during the evaluation
 
 
- 
 
-