Class DefaultDmnEngine

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

public class DefaultDmnEngine extends Object implements DmnEngine
  • Field Details

  • Constructor Details

  • Method Details

    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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:
    • 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