-
Bug
-
Resolution: Not a Bug
-
Major
-
None
-
7.29.0.Final, 7.33.0.Final
-
-
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 } ] } } }