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

PMML function invocation returns context instead of single number

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 7.5.0.GA
    • DMN
    • CR1
    • Hide
      1. Deploy the attached project on kie-server
      2. Run command (replace testadmin with your user): curl -u testadmin:'admin1234;' -H "accept: application/json" -H "content-type: application/json" -X POST "http://localhost:8080/kie-server/services/rest/server/containers/invocation_1.0.0/dmn" -d "{ \"model-namespace\" : \"https://kiegroup.org/dmn/_434DF9D9-1D80-4D30-A844-2DA24AB84C7D\", \"model-name\" : \"logic\", \"decision-name\" : [ ], \"decision-id\" : [ ], \"dmn-context\" : {\"Period\":\"SPRING\", \"Humidity\":55, \"Precipitation\":true, \"Continent\":\"EUROPE\"}}"
      3. The result will look like [1] however it should look like [2]

      [1]

      "result" : {
                  "WeatherFromPmml" : {
                    "forecastScore" : 13.1,
                    "OverallScore" : 13.1
                  }
                }
      

      [2]

      "result" : {
                  "WeatherFromPmml" : 13.1
                }
      
      Show
      Deploy the attached project on kie-server Run command (replace testadmin with your user): curl -u testadmin:'admin1234;' -H "accept: application/json" -H "content-type: application/json" -X POST "http://localhost:8080/kie-server/services/rest/server/containers/invocation_1.0.0/dmn" -d "{ \"model-namespace\" : \"https://kiegroup.org/dmn/_434DF9D9-1D80-4D30-A844-2DA24AB84C7D\", \"model-name\" : \"logic\", \"decision-name\" : [ ], \"decision-id\" : [ ], \"dmn-context\" : {\"Period\":\"SPRING\", \"Humidity\":55, \"Precipitation\":true, \"Continent\":\"EUROPE\"}}" The result will look like [1] however it should look like [2] [1] "result" : { "WeatherFromPmml" : { "forecastScore" : 13.1, "OverallScore" : 13.1 } } [2] "result" : { "WeatherFromPmml" : 13.1 }

    Description

      The invocation of a PMML function returns a context instead of single number. The attached project demonstrates it. If you design same project using 7.28.0-SNAPSHOT workbench, single number is returned.

      Attachments

        Issue Links

          Activity

            People

              mmortari@redhat.com Matteo Mortari
              rh-ee-jomarko Jozef Marko
              Jozef Marko Jozef Marko
              Jozef Marko Jozef Marko
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: