private Rule makeRuleAnnotation(TDecisionRule rule, int ruleIndex) { return new Rule(ruleIndex, basicDMNTransformer.annotationEscapedText(rule)); }
private Rule makeRuleAnnotation(TDecisionRule rule, int ruleIndex) { return new Rule(ruleIndex, basicDMNTransformer.annotationEscapedText(rule)); }
@com.gs.dmn.runtime.annotation.Rule(index = 0, annotation = "") public com.gs.dmn.runtime.RuleOutput rule0(javax.xml.datatype.XMLGregorianCalendar dateD, javax.xml.datatype.XMLGregorianCalendar dateE, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(0, ""); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule DateCompare2RuleOutput output_ = new DateCompare2RuleOutput(false); if (Boolean.TRUE == (dateGreaterThan(dateD, dateE))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setDateCompare2(Boolean.TRUE); // Add annotation annotationSet_.addAnnotation("dateCompare2", 0, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 2, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule2(java.math.BigDecimal compareAgainstLendingThreshold, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(2, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule MakeCreditDecisionRuleOutput output_ = new MakeCreditDecisionRuleOutput(false); if (Boolean.TRUE == (numericGreaterThan(compareAgainstLendingThreshold, number("0.1")))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setMakeCreditDecision("Accept"); // Add annotation annotationSet_.addAnnotation("makeCreditDecision", 2, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 1, annotation = "") public com.gs.dmn.runtime.RuleOutput rule1(javax.xml.datatype.XMLGregorianCalendar dateD, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(1, ""); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule DateCompare1RuleOutput output_ = new DateCompare1RuleOutput(false); if (Boolean.TRUE == (dateLessEqualThan(dateD, date("2016-10-01")))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setDateCompare1(Boolean.FALSE); // Add annotation annotationSet_.addAnnotation("dateCompare1", 1, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 0, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule0(java.math.BigDecimal compareAgainstLendingThreshold, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(0, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule MakeCreditDecisionRuleOutput output_ = new MakeCreditDecisionRuleOutput(false); if (Boolean.TRUE == (numericLessThan(compareAgainstLendingThreshold, numericUnaryMinus(number("0.1"))))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setMakeCreditDecision("Reject"); // Add annotation annotationSet_.addAnnotation("makeCreditDecision", 0, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 1, annotation = "") public com.gs.dmn.runtime.RuleOutput rule1(com.gs.dmn.tck.cl3_0017_tableTests.type.TA structA, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(1, ""); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule PriceGt10RuleOutput output_ = new PriceGt10RuleOutput(false); if (Boolean.TRUE == (numericLessEqualThan(((java.math.BigDecimal)(structA != null ? structA.getPrice() : null)), number("10")))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setPriceGt10(Boolean.FALSE); // Add annotation annotationSet_.addAnnotation("priceGt10", 1, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 2, annotation = "") public com.gs.dmn.runtime.RuleOutput rule2(String preBureauRiskCategory, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(2, ""); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule BureauCallTypeTableRuleOutput output_ = new BureauCallTypeTableRuleOutput(false); if (Boolean.TRUE == booleanOr((stringEqual(preBureauRiskCategory, "VERY LOW")), (stringEqual(preBureauRiskCategory, "DECLINE")))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setBureauCallTypeTable("NONE"); // Add annotation annotationSet_.addAnnotation("BureauCallTypeTable", 2, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 2, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule2(com.gs.dmn.example_credit_decision.type.Applicant applicant, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(2, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule ProcessPriorIssuesRuleOutput output_ = new ProcessPriorIssuesRuleOutput(false); if (Boolean.TRUE == (listContains(((List<String>)(applicant != null ? applicant.getPriorIssues() : null)), "Default on obligations"))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setProcessPriorIssues(numericUnaryMinus(number("30"))); // Add annotation annotationSet_.addAnnotation("processPriorIssues", 2, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 3, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule3(com.gs.dmn.example_credit_decision.type.Applicant applicant, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(3, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule ProcessPriorIssuesRuleOutput output_ = new ProcessPriorIssuesRuleOutput(false); if (Boolean.TRUE == (listContains(((List<String>)(applicant != null ? applicant.getPriorIssues() : null)), "Bankruptcy"))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setProcessPriorIssues(numericUnaryMinus(number("100"))); // Add annotation annotationSet_.addAnnotation("processPriorIssues", 3, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 2, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule2(com.gs.dmn.example_credit_decision.type.Applicant applicant, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(2, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule AssessApplicantAgeRuleOutput output_ = new AssessApplicantAgeRuleOutput(false); if (Boolean.TRUE == (numericGreaterThan(((java.math.BigDecimal)(applicant != null ? applicant.getAge() : null)), number("25")))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setAssessApplicantAge(number("60")); // Add annotation annotationSet_.addAnnotation("assessApplicantAge", 2, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 0, annotation = "") public com.gs.dmn.runtime.RuleOutput rule0(String riskCategory, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(0, ""); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule CreditContingencyFactorTableRuleOutput output_ = new CreditContingencyFactorTableRuleOutput(false); if (Boolean.TRUE == booleanOr((stringEqual(riskCategory, "HIGH")), (stringEqual(riskCategory, "DECLINE")))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setCreditContingencyFactorTable(number("0.6")); // Add annotation annotationSet_.addAnnotation("CreditContingencyFactorTable", 0, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 0, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule0(com.gs.dmn.example_credit_decision.type.Applicant applicant, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(0, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule ProcessPriorIssuesRuleOutput output_ = new ProcessPriorIssuesRuleOutput(false); if (Boolean.TRUE == (listContains(((List<String>)(applicant != null ? applicant.getPriorIssues() : null)), "Card rejection"))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setProcessPriorIssues(numericUnaryMinus(number("10"))); // Add annotation annotationSet_.addAnnotation("processPriorIssues", 0, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 1, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule1(com.gs.dmn.example_credit_decision.type.Applicant applicant, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(1, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule ProcessPriorIssuesRuleOutput output_ = new ProcessPriorIssuesRuleOutput(false); if (Boolean.TRUE == (listContains(((List<String>)(applicant != null ? applicant.getPriorIssues() : null)), "Late payment"))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setProcessPriorIssues(numericUnaryMinus(number("10"))); // Add annotation annotationSet_.addAnnotation("processPriorIssues", 1, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 2, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule2(com.gs.dmn.example_credit_decision.type.Applicant applicant, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(2, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule AssessApplicantAgeRuleOutput output_ = new AssessApplicantAgeRuleOutput(false); if (Boolean.TRUE == (numericGreaterThan(((java.math.BigDecimal)(applicant != null ? applicant.getAge() : null)), number("25")))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setAssessApplicantAge(number("60")); // Add annotation annotationSet_.addAnnotation("assessApplicantAge", 2, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 5, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule5(com.gs.dmn.example_credit_decision.type.Applicant applicant, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(5, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule ProcessPriorIssuesRuleOutput output_ = new ProcessPriorIssuesRuleOutput(false); if (Boolean.TRUE == true) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setProcessPriorIssues(numericMultiply(count(((List<String>)(applicant != null ? applicant.getPriorIssues() : null))), numericUnaryMinus(number("5")))); // Add annotation annotationSet_.addAnnotation("processPriorIssues", 5, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 1, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule1(java.math.BigDecimal compareAgainstLendingThreshold, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(1, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule MakeCreditDecisionRuleOutput output_ = new MakeCreditDecisionRuleOutput(false); if (Boolean.TRUE == (booleanAnd(numericGreaterEqualThan(compareAgainstLendingThreshold, numericUnaryMinus(number("0.1"))), numericLessEqualThan(compareAgainstLendingThreshold, number("0.1"))))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setMakeCreditDecision("Recommend further assessment"); // Add annotation annotationSet_.addAnnotation("makeCreditDecision", 1, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 1, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule1(java.math.BigDecimal compareAgainstLendingThreshold, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(1, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule MakeCreditDecisionRuleOutput output_ = new MakeCreditDecisionRuleOutput(false); if (Boolean.TRUE == (booleanAnd(numericGreaterEqualThan(compareAgainstLendingThreshold, numericUnaryMinus(number("0.1"))), numericLessEqualThan(compareAgainstLendingThreshold, number("0.1"))))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setMakeCreditDecision("Recommend further assessment"); // Add annotation annotationSet_.addAnnotation("makeCreditDecision", 1, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 4, annotation = "string(-)") public com.gs.dmn.runtime.RuleOutput rule4(com.gs.dmn.example_credit_decision.type.Applicant applicant, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(4, "string(-)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule ProcessPriorIssuesRuleOutput output_ = new ProcessPriorIssuesRuleOutput(false); if (Boolean.TRUE == booleanNot(booleanOr((listContains(((List<String>)(applicant != null ? applicant.getPriorIssues() : null)), "Card rejection")), (listContains(((List<String>)(applicant != null ? applicant.getPriorIssues() : null)), "Late payment")), (listContains(((List<String>)(applicant != null ? applicant.getPriorIssues() : null)), "Default on obligations")), (listContains(((List<String>)(applicant != null ? applicant.getPriorIssues() : null)), "Bankruptcy"))))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setProcessPriorIssues(number("50")); // Add annotation annotationSet_.addAnnotation("processPriorIssues", 4, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@com.gs.dmn.runtime.annotation.Rule(index = 0, annotation = "string(\"Raw issue score is \") + string(assessIssueRisk) + string(\", Age-weighted score is \") + string(assessApplicantAge) + string(\", Acceptance threshold is \") + string(lendingThreshold)") public com.gs.dmn.runtime.RuleOutput rule0(java.math.BigDecimal assessApplicantAge, java.math.BigDecimal assessIssueRisk, java.math.BigDecimal lendingThreshold, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { // Rule metadata com.gs.dmn.runtime.listener.Rule drgRuleMetadata = new com.gs.dmn.runtime.listener.Rule(0, "string(\"Raw issue score is \") + string(assessIssueRisk) + string(\", Age-weighted score is \") + string(assessApplicantAge) + string(\", Acceptance threshold is \") + string(lendingThreshold)"); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule CompareAgainstLendingThresholdRuleOutput output_ = new CompareAgainstLendingThresholdRuleOutput(false); if (Boolean.TRUE == booleanNot((lendingThreshold == null))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setCompareAgainstLendingThreshold(numericSubtract(numericAdd(assessIssueRisk, assessApplicantAge), lendingThreshold)); // Add annotation annotationSet_.addAnnotation("compareAgainstLendingThreshold", 0, stringAdd(stringAdd(stringAdd(stringAdd(stringAdd(string("Raw issue score is "), string(assessIssueRisk)), string(", Age-weighted score is ")), string(assessApplicantAge)), string(", Acceptance threshold is ")), string(lendingThreshold))); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }