Class DecisionServiceImpl

    • Constructor Detail

      • DecisionServiceImpl

        public DecisionServiceImpl()
    • Method Detail

      • evaluateDecisionTableByKey

        public DmnDecisionTableResult evaluateDecisionTableByKey​(String decisionDefinitionKey,
                                                                 Map<String,​Object> variables)
        Description copied from interface: DecisionService
        Evaluates the decision with the given key in the latest version.
        Specified by:
        evaluateDecisionTableByKey in interface DecisionService
        Parameters:
        decisionDefinitionKey - the key of the decision definition, cannot be null.
        variables - the input values of the decision.
        Returns:
        the result of the evaluation.
      • evaluateDecisionTableByKeyAndVersion

        public DmnDecisionTableResult evaluateDecisionTableByKeyAndVersion​(String decisionDefinitionKey,
                                                                           Integer version,
                                                                           Map<String,​Object> variables)
        Description copied from interface: DecisionService
        Evaluates the decision with the given key in the specified version. If no version is provided then the latest version of the decision definition is taken.
        Specified by:
        evaluateDecisionTableByKeyAndVersion in interface DecisionService
        Parameters:
        decisionDefinitionKey - the key of the decision definition, cannot be null.
        version - the version of the decision definition. If null then the latest version is taken.
        variables - the input values of the decision.
        Returns:
        the result of the evaluation.
      • evaluateDecisionByKey

        public DecisionsEvaluationBuilder evaluateDecisionByKey​(String decisionDefinitionKey)
        Description copied from interface: DecisionService
        Returns a fluent builder to evaluate the decision with the given key. The builder can be used to set further properties and specify evaluation instructions.
        Specified by:
        evaluateDecisionByKey in interface DecisionService
        Parameters:
        decisionDefinitionKey - the key of the decision definition, cannot be null.
        Returns:
        a builder to evaluate a decision
      • evaluateDecisionById

        public DecisionsEvaluationBuilder evaluateDecisionById​(String decisionDefinitionId)
        Description copied from interface: DecisionService
        Returns a fluent builder to evaluate the decision with the given id. The builder can be used to set further properties and specify evaluation instructions.
        Specified by:
        evaluateDecisionById in interface DecisionService
        Parameters:
        decisionDefinitionId - the id of the decision definition, cannot be null.
        Returns:
        a builder to evaluate a decision