private Arguments makeArguments(TDRGElement element, RuntimeEnvironment runtimeEnvironment) { Arguments arguments = new Arguments(); List<String> parameters = basicDMNTransformer.drgElementArgumentNameList(element, false); parameters.forEach(p -> arguments.put(p, runtimeEnvironment.lookupBinding(p))); return arguments; }
private Arguments makeArguments(TDRGElement element, RuntimeEnvironment runtimeEnvironment) { Arguments arguments = new Arguments(); List<String> parameters = basicDMNTransformer.drgElementArgumentNameList(element, false); parameters.forEach(p -> arguments.put(p, runtimeEnvironment.lookupBinding(p))); return arguments; }
public List<java.math.BigDecimal> apply(java.math.BigDecimal value, 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 'multiples' long multiplesStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments multiplesArguments_ = new com.gs.dmn.runtime.listener.Arguments(); multiplesArguments_.put("value", value); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, multiplesArguments_); // Evaluate decision 'multiples' List<java.math.BigDecimal> output_ = evaluate(value, annotationSet_, eventListener_, externalExecutor_); // End decision 'multiples' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, multiplesArguments_, output_, (System.currentTimeMillis() - multiplesStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'multiples' evaluation", e); return null; } }
private java.math.BigDecimal apply(java.math.BigDecimal radius, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { try { // Start BKM 'Circumference' long circumferenceStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments circumferenceArguments_ = new com.gs.dmn.runtime.listener.Arguments(); circumferenceArguments_.put("radius", radius); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, circumferenceArguments_); // Evaluate BKM 'Circumference' java.math.BigDecimal output_ = evaluate(radius, annotationSet_, eventListener_, externalExecutor_); // End BKM 'Circumference' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, circumferenceArguments_, output_, (System.currentTimeMillis() - circumferenceStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'Circumference' evaluation", e); return null; } }
public Boolean apply(String a, 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 'Matches' long matchesStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments matchesArguments_ = new com.gs.dmn.runtime.listener.Arguments(); matchesArguments_.put("a", a); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, matchesArguments_); // Evaluate decision 'Matches' Boolean output_ = evaluate(a, annotationSet_, eventListener_, externalExecutor_); // End decision 'Matches' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, matchesArguments_, output_, (System.currentTimeMillis() - matchesStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'Matches' evaluation", e); return null; } }
private String apply(String preBureauRiskCategory, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { try { // Start BKM 'BureauCallTypeTable' long bureauCallTypeTableStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments bureauCallTypeTableArguments_ = new com.gs.dmn.runtime.listener.Arguments(); bureauCallTypeTableArguments_.put("preBureauRiskCategory", preBureauRiskCategory); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, bureauCallTypeTableArguments_); // Evaluate BKM 'BureauCallTypeTable' String output_ = evaluate(preBureauRiskCategory, annotationSet_, eventListener_, externalExecutor_); // End BKM 'BureauCallTypeTable' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, bureauCallTypeTableArguments_, output_, (System.currentTimeMillis() - bureauCallTypeTableStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'BureauCallTypeTable' evaluation", e); return null; } }
public javax.xml.datatype.XMLGregorianCalendar apply(String timeString, 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 'Time' long timeStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments timeArguments_ = new com.gs.dmn.runtime.listener.Arguments(); timeArguments_.put("timeString", timeString); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, timeArguments_); // Evaluate decision 'Time' javax.xml.datatype.XMLGregorianCalendar output_ = evaluate(timeString, annotationSet_, eventListener_, externalExecutor_); // End decision 'Time' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, timeArguments_, output_, (System.currentTimeMillis() - timeStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'Time' evaluation", e); return null; } }
public List<java.math.BigDecimal> apply(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_) { try { // Start decision 'processPriorIssues' long processPriorIssuesStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments processPriorIssuesArguments_ = new com.gs.dmn.runtime.listener.Arguments(); processPriorIssuesArguments_.put("applicant", applicant); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, processPriorIssuesArguments_); // Evaluate decision 'processPriorIssues' List<java.math.BigDecimal> output_ = evaluate(applicant, annotationSet_, eventListener_, externalExecutor_); // End decision 'processPriorIssues' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, processPriorIssuesArguments_, output_, (System.currentTimeMillis() - processPriorIssuesStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'processPriorIssues' evaluation", e); return null; } }
public String apply(java.math.BigDecimal numC, 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 'Constructor' long constructorStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments constructorArguments_ = new com.gs.dmn.runtime.listener.Arguments(); constructorArguments_.put("numC", numC); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, constructorArguments_); // Evaluate decision 'Constructor' String output_ = evaluate(numC, annotationSet_, eventListener_, externalExecutor_); // End decision 'Constructor' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, constructorArguments_, output_, (System.currentTimeMillis() - constructorStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'Constructor' evaluation", e); return null; } }
private String apply(String preBureauRiskCategory, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { try { // Start BKM 'BureauCallTypeTable' long bureauCallTypeTableStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments bureauCallTypeTableArguments_ = new com.gs.dmn.runtime.listener.Arguments(); bureauCallTypeTableArguments_.put("preBureauRiskCategory", preBureauRiskCategory); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, bureauCallTypeTableArguments_); // Evaluate BKM 'BureauCallTypeTable' String output_ = evaluate(preBureauRiskCategory, annotationSet_, eventListener_, externalExecutor_); // End BKM 'BureauCallTypeTable' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, bureauCallTypeTableArguments_, output_, (System.currentTimeMillis() - bureauCallTypeTableStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'BureauCallTypeTable' evaluation", e); return null; } }
public List<String> apply(List<String> list2, 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 'remove2nd' long remove2ndStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments remove2ndArguments_ = new com.gs.dmn.runtime.listener.Arguments(); remove2ndArguments_.put("list2", list2); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, remove2ndArguments_); // Evaluate decision 'remove2nd' List<String> output_ = evaluate(list2, annotationSet_, eventListener_, externalExecutor_); // End decision 'remove2nd' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, remove2ndArguments_, output_, (System.currentTimeMillis() - remove2ndStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'remove2nd' evaluation", e); return null; } }
public java.math.BigDecimal apply(com.gs.dmn.tck.cl3_0004_lending_dag.type.TRequestedProduct requestedProduct, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { try { // Start decision 'RequiredMonthlyInstallment' long requiredMonthlyInstallmentStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments requiredMonthlyInstallmentArguments_ = new com.gs.dmn.runtime.listener.Arguments(); requiredMonthlyInstallmentArguments_.put("requestedProduct", requestedProduct); eventListener_.startDRGElement(com.gs.dmn.tck.cl3_0004_lending_dag.RequiredMonthlyInstallment.DRG_ELEMENT_METADATA, requiredMonthlyInstallmentArguments_); // Evaluate decision 'RequiredMonthlyInstallment' java.math.BigDecimal output_ = evaluate(requestedProduct, annotationSet_, eventListener_, externalExecutor_); // End decision 'RequiredMonthlyInstallment' eventListener_.endDRGElement(com.gs.dmn.tck.cl3_0004_lending_dag.RequiredMonthlyInstallment.DRG_ELEMENT_METADATA, requiredMonthlyInstallmentArguments_, output_, (System.currentTimeMillis() - requiredMonthlyInstallmentStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'RequiredMonthlyInstallment' evaluation", e); return null; } }
public List<java.math.BigDecimal> apply(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_) { try { // Start decision 'processPriorIssues' long processPriorIssuesStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments processPriorIssuesArguments_ = new com.gs.dmn.runtime.listener.Arguments(); processPriorIssuesArguments_.put("applicant", applicant); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, processPriorIssuesArguments_); // Evaluate decision 'processPriorIssues' List<java.math.BigDecimal> output_ = evaluate(applicant, annotationSet_, eventListener_, externalExecutor_); // End decision 'processPriorIssues' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, processPriorIssuesArguments_, output_, (System.currentTimeMillis() - processPriorIssuesStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'processPriorIssues' evaluation", e); return null; } }
public java.math.BigDecimal apply(java.math.BigDecimal n, 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 'main' long mainStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments mainArguments_ = new com.gs.dmn.runtime.listener.Arguments(); mainArguments_.put("n", n); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, mainArguments_); // Evaluate decision 'main' java.math.BigDecimal output_ = evaluate(n, annotationSet_, eventListener_, externalExecutor_); // End decision 'main' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, mainArguments_, output_, (System.currentTimeMillis() - mainStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'main' evaluation", e); return null; } }
public List<java.math.BigDecimal> apply(List<java.math.BigDecimal> heights, 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 'increase1' long increase1StartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments increase1Arguments_ = new com.gs.dmn.runtime.listener.Arguments(); increase1Arguments_.put("heights", heights); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, increase1Arguments_); // Evaluate decision 'increase1' List<java.math.BigDecimal> output_ = evaluate(heights, annotationSet_, eventListener_, externalExecutor_); // End decision 'increase1' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, increase1Arguments_, output_, (System.currentTimeMillis() - increase1StartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'increase1' evaluation", e); return null; } }
public java.math.BigDecimal apply(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_) { try { // Start decision 'assessApplicantAge' long assessApplicantAgeStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments assessApplicantAgeArguments_ = new com.gs.dmn.runtime.listener.Arguments(); assessApplicantAgeArguments_.put("applicant", applicant); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, assessApplicantAgeArguments_); // Evaluate decision 'assessApplicantAge' java.math.BigDecimal output_ = evaluate(applicant, annotationSet_, eventListener_, externalExecutor_); // End decision 'assessApplicantAge' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, assessApplicantAgeArguments_, output_, (System.currentTimeMillis() - assessApplicantAgeStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'assessApplicantAge' evaluation", e); return null; } }
private java.math.BigDecimal apply(java.math.BigDecimal n, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { try { // Start BKM 'FACT' long fACTStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments fACTArguments_ = new com.gs.dmn.runtime.listener.Arguments(); fACTArguments_.put("n", n); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, fACTArguments_); // Evaluate BKM 'FACT' java.math.BigDecimal output_ = evaluate(n, annotationSet_, eventListener_, externalExecutor_); // End BKM 'FACT' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, fACTArguments_, output_, (System.currentTimeMillis() - fACTStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'FACT' evaluation", e); return null; } }
public String apply(List<String> employees, 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 'decision4' long decision4StartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments decision4Arguments_ = new com.gs.dmn.runtime.listener.Arguments(); decision4Arguments_.put("employees", employees); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, decision4Arguments_); // Evaluate decision 'decision4' String output_ = evaluate(employees, annotationSet_, eventListener_, externalExecutor_); // End decision 'decision4' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, decision4Arguments_, output_, (System.currentTimeMillis() - decision4StartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'decision4' evaluation", e); return null; } }
private java.math.BigDecimal apply(String riskCategory, com.gs.dmn.runtime.annotation.AnnotationSet annotationSet_, com.gs.dmn.runtime.listener.EventListener eventListener_, com.gs.dmn.runtime.external.ExternalFunctionExecutor externalExecutor_) { try { // Start BKM 'CreditContingencyFactorTable' long creditContingencyFactorTableStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments creditContingencyFactorTableArguments_ = new com.gs.dmn.runtime.listener.Arguments(); creditContingencyFactorTableArguments_.put("riskCategory", riskCategory); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, creditContingencyFactorTableArguments_); // Evaluate BKM 'CreditContingencyFactorTable' java.math.BigDecimal output_ = evaluate(riskCategory, annotationSet_, eventListener_, externalExecutor_); // End BKM 'CreditContingencyFactorTable' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, creditContingencyFactorTableArguments_, output_, (System.currentTimeMillis() - creditContingencyFactorTableStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'CreditContingencyFactorTable' evaluation", e); return null; } }
public java.math.BigDecimal apply(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_) { try { // Start decision 'assessApplicantAge' long assessApplicantAgeStartTime_ = System.currentTimeMillis(); com.gs.dmn.runtime.listener.Arguments assessApplicantAgeArguments_ = new com.gs.dmn.runtime.listener.Arguments(); assessApplicantAgeArguments_.put("applicant", applicant); eventListener_.startDRGElement(DRG_ELEMENT_METADATA, assessApplicantAgeArguments_); // Evaluate decision 'assessApplicantAge' java.math.BigDecimal output_ = evaluate(applicant, annotationSet_, eventListener_, externalExecutor_); // End decision 'assessApplicantAge' eventListener_.endDRGElement(DRG_ELEMENT_METADATA, assessApplicantAgeArguments_, output_, (System.currentTimeMillis() - assessApplicantAgeStartTime_)); return output_; } catch (Exception e) { logError("Exception caught in 'assessApplicantAge' evaluation", e); return null; } }