Class DefaultDmnEngine

    • Method Detail

      • 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​(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​(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