org.camunda.bpm.dmn.engine.impl
Class DefaultDmnEngine

java.lang.Object
  extended by org.camunda.bpm.dmn.engine.impl.DefaultDmnEngine
All Implemented Interfaces:
DmnEngine

public class DefaultDmnEngine
extends Object
implements DmnEngine


Field Summary
protected  DefaultDmnEngineConfiguration dmnEngineConfiguration
           
protected static DmnEngineLogger LOG
           
protected  DmnTransformer transformer
           
 
Constructor Summary
DefaultDmnEngine(DefaultDmnEngineConfiguration dmnEngineConfiguration)
           
 
Method Summary
 DmnDecisionResult evaluateDecision(DmnDecision decision, Map<String,Object> variables)
          Evaluates a decision.
 DmnDecisionResult evaluateDecision(DmnDecision decision, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
          Evaluates a decision.
 DmnDecisionResult evaluateDecision(String decisionKey, org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance, Map<String,Object> variables)
          Evaluates the decision with the given key in a DMN decision model.
 DmnDecisionResult evaluateDecision(String decisionKey, org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
          Evaluates the decision with the given key in a DMN decision model.
 DmnDecisionResult evaluateDecision(String decisionKey, InputStream inputStream, Map<String,Object> variables)
          Evaluates the decision with the given key in a DMN decision model.
 DmnDecisionResult evaluateDecision(String decisionKey, InputStream inputStream, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
          Evaluates the decision with the given key in a DMN decision model.
 DmnDecisionTableResult evaluateDecisionTable(DmnDecision decision, Map<String,Object> variables)
          Evaluates a decision which is implemented as decision table.
 DmnDecisionTableResult evaluateDecisionTable(DmnDecision decision, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
          Evaluates a decision which is implemented as decision table.
 DmnDecisionTableResult evaluateDecisionTable(String decisionKey, org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance, Map<String,Object> variables)
          Evaluates the decision with the given key in a DMN decision model.
 DmnDecisionTableResult evaluateDecisionTable(String decisionKey, org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
          Evaluates the decision with the given key in a DMN decision model.
 DmnDecisionTableResult evaluateDecisionTable(String decisionKey, InputStream inputStream, Map<String,Object> variables)
          Evaluates the decision with the given key in a DMN decision model.
 DmnDecisionTableResult evaluateDecisionTable(String decisionKey, InputStream inputStream, org.camunda.bpm.engine.variable.context.VariableContext variableContext)
          Evaluates the decision with the given key in a DMN decision model.
 DmnEngineConfiguration getConfiguration()
          The configuration of this engine.
 DmnDecision parseDecision(String decisionKey, org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance)
          Parse the decision with the given key in a DMN decision model.
 DmnDecision parseDecision(String decisionKey, InputStream inputStream)
          Parse the decision with the given key in a DMN decision model.
 DmnDecisionRequirementsGraph parseDecisionRequirementsGraph(org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance)
          Parse the decision requirements graph in a DMN decision model.
 DmnDecisionRequirementsGraph parseDecisionRequirementsGraph(InputStream inputStream)
          Parse the decision requirements graph in a DMN decision model.
 List<DmnDecision> parseDecisions(org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance)
          Parse all decisions in a DMN decision model.
 List<DmnDecision> parseDecisions(InputStream inputStream)
          Parse all decisions in a DMN decision model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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 interface DmnEngine
Returns:
the DMN engine configuration

parseDecisions

public List<DmnDecision> parseDecisions(InputStream inputStream)
Description copied from interface: DmnEngine
Parse all decisions in a DMN decision model.

Specified by:
parseDecisions in interface DmnEngine
Parameters:
inputStream - the InputStream of the DMN file
Returns:
a list of the DmnDecisions of the DMN file

parseDecisions

public List<DmnDecision> parseDecisions(org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance)
Description copied from interface: DmnEngine
Parse all decisions in a DMN decision model.

Specified by:
parseDecisions in interface DmnEngine
Parameters:
dmnModelInstance - the DmnModelInstance of the DMN decision model
Returns:
a list of the DmnDecisions of the DMN file

parseDecision

public DmnDecision parseDecision(String decisionKey,
                                 InputStream inputStream)
Description copied from interface: DmnEngine
Parse the decision with the given key in a DMN decision model. The key is the id attribute of the decision in the DMN XML file.

Specified by:
parseDecision in interface DmnEngine
Parameters:
decisionKey - the key of the decision to parse
inputStream - the InputStream of the DMN file
Returns:
the first DmnDecision of the DMN file

parseDecision

public DmnDecision parseDecision(String decisionKey,
                                 org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance)
Description copied from interface: DmnEngine
Parse the decision with the given key in a DMN decision model. The key is the id attribute of the decision in the DMN XML file.

Specified by:
parseDecision in interface DmnEngine
Parameters:
decisionKey - the key of the decision to parse
dmnModelInstance - the DmnModelInstance of the DMN decision model
Returns:
the first DmnDecision of the DMN file

parseDecisionRequirementsGraph

public DmnDecisionRequirementsGraph parseDecisionRequirementsGraph(InputStream inputStream)
Description copied from interface: DmnEngine
Parse the decision requirements graph in a DMN decision model.

Specified by:
parseDecisionRequirementsGraph in interface DmnEngine
Parameters:
inputStream - the InputStream of the DMN file
Returns:
a list of the DmnDecisions of the DMN file

parseDecisionRequirementsGraph

public DmnDecisionRequirementsGraph parseDecisionRequirementsGraph(org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance)
Description copied from interface: DmnEngine
Parse the decision requirements graph in a DMN decision model.

Specified by:
parseDecisionRequirementsGraph in interface DmnEngine
Parameters:
dmnModelInstance - the DmnModelInstance of the DMN decision model
Returns:
a list of the DmnDecisions 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 interface DmnEngine
Parameters:
decision - the DmnDecision to evaluate
variables - 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,
                                                    org.camunda.bpm.engine.variable.context.VariableContext variableContext)
Description copied from interface: DmnEngine
Evaluates a decision which is implemented as decision table.

Specified by:
evaluateDecisionTable in interface DmnEngine
Parameters:
decision - the DmnDecision to evaluate
variableContext - 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(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 the id attribute of the decision in the DMN XML file.

Specified by:
evaluateDecisionTable in interface DmnEngine
Parameters:
decisionKey - the key of the decision to evaluated
inputStream - the InputStream of the DMN file
variables - 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(String decisionKey,
                                                    InputStream inputStream,
                                                    org.camunda.bpm.engine.variable.context.VariableContext variableContext)
Description copied from interface: DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is the id attribute of the decision in the DMN XML file.

Specified by:
evaluateDecisionTable in interface DmnEngine
Parameters:
decisionKey - the key of the decision to evaluated
inputStream - the InputStream of the DMN file
variableContext - 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(String decisionKey,
                                                    org.camunda.bpm.model.dmn.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 the id attribute of the decision in the DMN XML file.

Specified by:
evaluateDecisionTable in interface DmnEngine
Parameters:
decisionKey - the key of the decision to evaluated
dmnModelInstance - the DmnModelInstance of the DMN decision model
variables - 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(String decisionKey,
                                                    org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance,
                                                    org.camunda.bpm.engine.variable.context.VariableContext variableContext)
Description copied from interface: DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is the id attribute of the decision in the DMN XML file.

Specified by:
evaluateDecisionTable in interface DmnEngine
Parameters:
decisionKey - the key of the decision to evaluated
dmnModelInstance - the DmnModelInstance of the DMN decision model
variableContext - 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,
                                          Map<String,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 interface DmnEngine
Parameters:
decision - the DmnDecision to evaluate
variables - 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,
                                          org.camunda.bpm.engine.variable.context.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 interface DmnEngine
Parameters:
decision - the DmnDecision to evaluate
variableContext - 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 the id 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 interface DmnEngine
Parameters:
decisionKey - the key of the decision to evaluated
inputStream - the InputStream of the DMN file
variables - 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,
                                          org.camunda.bpm.engine.variable.context.VariableContext variableContext)
Description copied from interface: DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is the id 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 interface DmnEngine
Parameters:
decisionKey - the key of the decision to evaluated
inputStream - the InputStream of the DMN file
variableContext - 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,
                                          org.camunda.bpm.model.dmn.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 the id 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 interface DmnEngine
Parameters:
decisionKey - the key of the decision to evaluated
dmnModelInstance - the DmnModelInstance of the DMN decision model
variables - 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,
                                          org.camunda.bpm.model.dmn.DmnModelInstance dmnModelInstance,
                                          org.camunda.bpm.engine.variable.context.VariableContext variableContext)
Description copied from interface: DmnEngine
Evaluates the decision with the given key in a DMN decision model. The key is the id 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 interface DmnEngine
Parameters:
decisionKey - the key of the decision to evaluated
dmnModelInstance - the DmnModelInstance of the DMN decision model
variableContext - the variables context which is available during the evaluation of expressions in the decision
Returns:
the DmnDecisionResult of this evaluation


Copyright © 2017 camunda services GmbH. All rights reserved.