[jboss-jira] [JBoss JIRA] (DROOLS-5309) ServiceResponse is not properly serialized when ExecutionResultImpl
Steve Davidson (Jira)
issues at jboss.org
Fri May 8 12:53:01 EDT 2020
Steve Davidson created DROOLS-5309:
--------------------------------------
Summary: 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.33.0.Final, 7.29.0.Final
Reporter: Steve Davidson
Assignee: Mario Fusco
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