Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Rejected
    • Affects Version/s: 7.5.0.GA
    • Fix Version/s: None
    • Component/s: DMN
    • Labels:
    • Affects Build:
      CR1
    • Steps to Reproduce:
      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.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tari_manga Matteo Mortari
                  Reporter:
                  jomarko Jozef Marko
                  Tester:
                  Jozef Marko
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: