[jboss-jira] [JBoss JIRA] (DROOLS-5309) ServiceResponse is not properly serialized when ExecutionResultImpl

Steve Davidson (Jira) issues at jboss.org
Wed May 20 17:39:39 EDT 2020


     [ https://issues.redhat.com/browse/DROOLS-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Davidson closed DROOLS-5309.
----------------------------------
    Release Notes Text: Side-effect of Gradle configuration in DROOLS-5021.  See 
            Resolution: Explained


Side-effect of Gradle configuration in DROOLS-5021.  See [DROOLS-5021|https://issues.redhat.com/browse/DROOLS-5021?focusedCommentId=14107366&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-14107366] for details.

> ServiceResponse is not properly serialized when ExecutionResultImpl
> -------------------------------------------------------------------
>
>                 Key: DROOLS-5309
>                 URL: https://issues.redhat.com/browse/DROOLS-5309
>             Project: Drools
>          Issue Type: Bug
>          Components: kie server
>    Affects Versions: 7.29.0.Final, 7.33.0.Final
>            Reporter: Steve Davidson
>            Assignee: Mario Fusco
>            Priority: Major
>              Labels: drools, kie
>         Attachments: KieIssueDemo.tbz
>
>
> When a Drools Batch command has been processed, the conversion of the Kie ServiceResponse to JSON wraps the ServiceResponse.  The resulting message looks like:
> {code:json}
> {
>   "org.kie.server.api.model.ServiceResponse" : {
>     "type" : "SUCCESS",
>     "msg" : "Container Kie Demo: kie-server successfully called.",
>     "result" : {
>       "ExecutionResultImpl" : {
>         "results" : [ ],
>         "facts" : [ ]
>       }
>     }
>   }
> }
> {code}
> A good response doesn't wrap the ServiceResponse:
> {code:json}
> {
>   "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
>       } ]
>     }
>   }
> }
> {code}



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list