Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-316

PMML scorecards are not able to evaluate ComplexPartialScore

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.GA
    • 7.0.0.GA
    • BRE
    • 1
    • RC1
    • Hide
      1. Run reproducer: https://github.com/kiegroup/drools/pull/1720/files#diff-d5d3776fdc96ec607ba1721a96e0e89bR316
      2. Test fails with NPE exception:
        java.lang.RuntimeException: java.lang.NullPointerException
        at org.drools.core.base.accumulators.SumAccumulateFunction.accumulate(SumAccumulateFunction.java:62)
        at org.drools.core.base.accumulators.SumAccumulateFunction.accumulate(SumAccumulateFunction.java:27)
      Show
      Run reproducer: https://github.com/kiegroup/drools/pull/1720/files#diff-d5d3776fdc96ec607ba1721a96e0e89bR316 Test fails with NPE exception: java.lang.RuntimeException: java.lang.NullPointerException at org.drools.core.base.accumulators.SumAccumulateFunction.accumulate(SumAccumulateFunction.java:62) at org.drools.core.base.accumulators.SumAccumulateFunction.accumulate(SumAccumulateFunction.java:27)
    • 2018 Week 07-08, 2018 Week 33-35, 2018 Week 36-38

      Drools engine is not able to evaluate ComplexPartialScore score and fails with NPE. See reproducer [1]. ComplexPartialScore is a part of scorecard implementation and can be used for evaluation of custom arithmetic expressions. [2] This feature was added to PMML in version 4.2, which is currently supported by kie-pmml module in Drools. [3]

      [1] https://github.com/kiegroup/drools/pull/1720/files#diff-d5d3776fdc96ec607ba1721a96e0e89bR316
      [2] http://dmg.org/pmml/v4-2-1/Scorecard.html#xsdElement_ComplexPartialScore
      [3] http://dmg.org/pmml/v4-2-1/Changes.html

              lleveric Lance Leverich (Inactive)
              jpetrlik@redhat.com Jiri Petrlik
              Jiri Petrlik Jiri Petrlik
              Jiri Petrlik Jiri Petrlik
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: