Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5341

ExecutionResultImpl not properly serialized in JSon Response

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • 7.29.0.Final
    • None
    • Hide
      1. In attached Demo Project, update kie.properties appropriately for local environment
      2. Run attached Demo Project
        NOTE: Blocked by DROOLS-5021
      Show
      In attached Demo Project, update kie.properties appropriately for local environment Run attached Demo Project NOTE: Blocked by DROOLS-5021
    • NEW
    • VERIFIED

    Description

      When a Drools Batch command has been processed, the conversion of the Kie ServiceResponse to JSON incorrectly serializes the ExecutionResponseImple. The resulting message looks like:

      {
        "org.kie.server.api.model.ServiceResponse" : {
          "type" : "SUCCESS",
          "msg" : "Container Kie Demo: kie-server successfully called.",
          "result" : {
            "ExecutionResultImpl" : {
              "results" : [ ],
              "facts" : [ ]
            }
          }
        }
      }
      

      This results in deserialization failure of the client side as the type of the result can not be determined. The correct response should be:

      {
        "org.kie.server.api.model.ServiceResponse" : {
          "type" : "SUCCESS",
          "msg" : "Container Kie Demo: kie-server successfully called.",
          "result" : {
            "execution-results" : {
              "results" : [ ],
              "facts" : [ ]
            }
          }
        }
      }
      

      Attachments

        Activity

          People

            mfusco@redhat.com Mario Fusco
            northgorky Steve Davidson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: