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

PMML scorecards are not able to evaluate ComplexPartialScore

    Details

    • Affects Build:
      RC1
    • Target Release:
    • Steps to Reproduce:
      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)
    • Story Points:
      1
    • Sprint:
      2018 Week 07-08, 2018 Week 33-35, 2018 Week 36-38

      Description

      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

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  lleveric Lance Leverich
                  Reporter:
                  jpetrlik Jiri Petrlik
                  Tester:
                  Jiri Petrlik
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  3 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: