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

ServiceResponse is not properly serialized when ExecutionResultImpl

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 7.29.0.Final, 7.33.0.Final
    • kie server
    • 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
    • Side-effect of Gradle configuration in DROOLS-5021. See
    • NEW
    • NEW

      When a Drools Batch command has been processed, the conversion of the Kie ServiceResponse to JSON wraps the ServiceResponse. 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" : [ ]
            }
          }
        }
      }
      

      A good response doesn't wrap the ServiceResponse:

      {
        "type" : "SUCCESS",
        "msg" : "List of created containers",
        "result" : {
          "kie-containers" : {
            "kie-container" : [ {
              "container-id" : "Kie Demo: kie-server",
              "release-id" : {
                "group-id" : "com.j2eeguys.demo",
                "artifact-id" : "KieIssueDemo",
                "version" : "0.1.0-SNAPSHOT"
              },
              "resolved-release-id" : {
                "group-id" : "com.j2eeguys.demo",
                "artifact-id" : "KieIssueDemo",
                "version" : "0.1.0-SNAPSHOT"
              },
              "status" : "STARTED",
              "scanner" : {
                "status" : "DISPOSED",
                "poll-interval" : null
              },
              "config-items" : [ ],
              "messages" : [ {
                "severity" : "INFO",
                "timestamp" : {
        "java.util.Date" : 1588885337926
      },
                "content" : [ "Container Kie Demo: kie-server successfully created with module com.j2eeguys.demo:KieIssueDemo:0.1.0-SNAPSHOT." ]
              } ],
              "container-alias" : null
            } ]
          }
        }
      }
      

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

                Created:
                Updated:
                Resolved: