[jboss-jira] [JBoss JIRA] (DROOLS-5309) ServiceResponse is not properly serialized when ExecutionResultImpl
Mario Fusco (Jira)
issues at jboss.org
Mon May 11 05:30:02 EDT 2020
[ https://issues.redhat.com/browse/DROOLS-5309?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco updated DROOLS-5309:
--------------------------------
Sprint: 2020 Week 19-21 (from May 4)
> 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