Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-928

PMML scorecards are not able to evaluate ComplexPartialScore

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 7.0.0.GA
    • Fix Version/s: None
    • Component/s: BRE
    • Labels:
    • 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)

      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:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: