public javax.xml.datatype.XMLGregorianCalendar apply(com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_, com.gs.dmn.runtime.cache.Cache cache_) { try { // Start decision ''feel-time-function_ErrorCase_063_e85c40b474'' long feelTimeFunction_ErrorCase_063_e85c40b474StartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments feelTimeFunction_ErrorCase_063_e85c40b474Arguments_ = new com.gs.dmn.runtime.listener.Arguments(); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, feelTimeFunction_ErrorCase_063_e85c40b474Arguments_); // Evaluate decision ''feel-time-function_ErrorCase_063_e85c40b474'' javax.xml.datatype.XMLGregorianCalendar output_ = evaluate(annotationSet_, eventListener_, externalExecutor_); // End decision ''feel-time-function_ErrorCase_063_e85c40b474'' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, feelTimeFunction_ErrorCase_063_e85c40b474Arguments_, output_, (System.currentTimeMillis() - feelTimeFunction_ErrorCase_063_e85c40b474StartTime_)); return output_; } catch (Exception e) { logError("Exception caught in ''feel-time-function_ErrorCase_063_e85c40b474'' evaluation", e); return null; } }
@Override public void endRule(DRGElement element, Rule rule, Object output) { eventListeners.forEach(el -> el.endRule(element, rule, output)); } }
@Override public void matchRule(DRGElement element, Rule rule) { eventListeners.forEach(el -> el.matchRule(element, rule)); }
@com.gs.dmn.runtime.annotation.Rule(index = 1, annotation = "") public com.gs.dmn.runtime.RuleOutput rule1(String c, 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 ListGen4RuleOutput output_ = new ListGen4RuleOutput(false); if (Boolean.TRUE == true) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setListGen4("b"); // Add annotation annotationSet_.addAnnotation("listGen4", 1, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
@Override public void startRule(DRGElement element, Rule rule) { eventListeners.forEach(el -> el.startRule(element, rule)); }
@Override public void startDRGElement(DRGElement element, Arguments arguments) { eventListeners.forEach(el -> el.startDRGElement(element, arguments)); }
@Override public void endDRGElement(DRGElement element, Arguments arguments, Object output, long duration) { eventListeners.forEach(el -> el.endDRGElement(element, arguments, output, duration)); }
@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_; }
@Override public void startRule(DRGElement element, Rule rule) { eventListeners.forEach(el -> el.startRule(element, rule)); }
@Override public void startDRGElement(DRGElement element, Arguments arguments) { eventListeners.forEach(el -> el.startDRGElement(element, arguments)); }
@Override public void endDRGElement(DRGElement element, Arguments arguments, Object output, long duration) { eventListeners.forEach(el -> el.endDRGElement(element, arguments, output, duration)); }
@com.gs.dmn.runtime.annotation.Rule(index = 1, annotation = "") public com.gs.dmn.runtime.RuleOutput rule1(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(1, ""); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule BureauCallTypeTableRuleOutput output_ = new BureauCallTypeTableRuleOutput(false); if (Boolean.TRUE == (stringEqual(preBureauRiskCategory, "LOW"))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setBureauCallTypeTable("MINI"); // Add annotation annotationSet_.addAnnotation("BureauCallTypeTable", 1, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
public String apply(com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_, com.gs.dmn.runtime.cache.Cache cache_) { try { // Start decision ''feel-replace-function_008_8c7c3871f8'' long feelReplaceFunction_008_8c7c3871f8StartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments feelReplaceFunction_008_8c7c3871f8Arguments_ = new com.gs.dmn.runtime.listener.Arguments(); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, feelReplaceFunction_008_8c7c3871f8Arguments_); // Evaluate decision ''feel-replace-function_008_8c7c3871f8'' String output_ = evaluate(annotationSet_, eventListener_, externalExecutor_); // End decision ''feel-replace-function_008_8c7c3871f8'' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, feelReplaceFunction_008_8c7c3871f8Arguments_, output_, (System.currentTimeMillis() - feelReplaceFunction_008_8c7c3871f8StartTime_)); return output_; } catch (Exception e) { logError("Exception caught in ''feel-replace-function_008_8c7c3871f8'' evaluation", e); return null; } }
@Override public void endRule(DRGElement element, Rule rule, Object output) { eventListeners.forEach(el -> el.endRule(element, rule, output)); } }
@Override public void matchRule(DRGElement element, Rule rule) { eventListeners.forEach(el -> el.matchRule(element, rule)); }
@com.gs.dmn.runtime.annotation.Rule(index = 1, annotation = "") public com.gs.dmn.runtime.RuleOutput rule1(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(1, ""); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule DateCompare2RuleOutput output_ = new DateCompare2RuleOutput(false); if (Boolean.TRUE == (dateLessEqualThan(dateD, dateE))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setDateCompare2(Boolean.FALSE); // Add annotation annotationSet_.addAnnotation("dateCompare2", 1, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
public String apply(com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_, com.gs.dmn.runtime.cache.Cache cache_) { try { // Start decision ''feel-replace-function_015_57ce78ec8a'' long feelReplaceFunction_015_57ce78ec8aStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments feelReplaceFunction_015_57ce78ec8aArguments_ = new com.gs.dmn.runtime.listener.Arguments(); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, feelReplaceFunction_015_57ce78ec8aArguments_); // Evaluate decision ''feel-replace-function_015_57ce78ec8a'' String output_ = evaluate(annotationSet_, eventListener_, externalExecutor_); // End decision ''feel-replace-function_015_57ce78ec8a'' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, feelReplaceFunction_015_57ce78ec8aArguments_, output_, (System.currentTimeMillis() - feelReplaceFunction_015_57ce78ec8aStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in ''feel-replace-function_015_57ce78ec8a'' evaluation", e); return null; } }
@com.gs.dmn.runtime.annotation.Rule(index = 1, annotation = "") public com.gs.dmn.runtime.RuleOutput rule1(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(1, ""); // Rule start eventListener_.startRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Apply rule BureauCallTypeTableRuleOutput output_ = new BureauCallTypeTableRuleOutput(false); if (Boolean.TRUE == (stringEqual(preBureauRiskCategory, "LOW"))) { // Rule match eventListener_.matchRule(DRG_ELEMENT_METADATA, drgRuleMetadata); // Compute output output_.setMatched(true); output_.setBureauCallTypeTable("MINI"); // Add annotation annotationSet_.addAnnotation("BureauCallTypeTable", 1, ""); } // Rule end eventListener_.endRule(DRG_ELEMENT_METADATA, drgRuleMetadata, output_); return output_; }
public javax.xml.datatype.XMLGregorianCalendar apply(com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_, com.gs.dmn.runtime.cache.Cache cache_) { try { // Start decision ''feel-time-function_ErrorCase_074_387d4411ea'' long feelTimeFunction_ErrorCase_074_387d4411eaStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments feelTimeFunction_ErrorCase_074_387d4411eaArguments_ = new com.gs.dmn.runtime.listener.Arguments(); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, feelTimeFunction_ErrorCase_074_387d4411eaArguments_); // Evaluate decision ''feel-time-function_ErrorCase_074_387d4411ea'' javax.xml.datatype.XMLGregorianCalendar output_ = evaluate(annotationSet_, eventListener_, externalExecutor_); // End decision ''feel-time-function_ErrorCase_074_387d4411ea'' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, feelTimeFunction_ErrorCase_074_387d4411eaArguments_, output_, (System.currentTimeMillis() - feelTimeFunction_ErrorCase_074_387d4411eaStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in ''feel-time-function_ErrorCase_074_387d4411ea'' evaluation", e); return null; } }
@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_; }