JSON response format has been changed since BRMS/BPMS 6.3.0 kie-server REST API
Issue
- this is a response from 6.3.0: Notice "execution-results" attribute
{
"type": "SUCCESS",
"msg": "Container MyContainer successfully called.",
"result": {
"execution-results": {
"results": [
{
"key": "insert-identifier",
"value": {
"com.sample.XXXInfo": {
"aaa": 6,
"bbb": 4
}
}
},
{
"key": "fire-identifier",
"value": 103
}
],
"facts": [
{
"key": "insert-identifier",
"value": {
"org.drools.core.common.DefaultFactHandle": {
"external-form": "0:1:1111111111:1111111111:111:DEFAULT:NON_TRAIT:com.sample.XXXInfo"
}
}
}
]
}
}
}
This is 6.2:
{
"type": "SUCCESS",
"msg": "Container MyContainer successfully called.",
"result": "{\n \"results\" : [ {\n \"key\" : \"insert-identifier\",\n \"value\" : {\"com.sample.XXXInfo\":{\n \"aaa\" : 6,\n \"bbb\" : 4\n}}\n }, {\n \"key\" : \"fire-identifier\",\n \"value\" : 103\n } ],\n \"facts\" : [ {\n \"key\" : \"insert-identifier\",\n \"value\" : {\"org.drools.core.common.DefaultFactHandle\":{\n \"external-form\" : \"0:1:11111111:1111111:103:DEFAULT:NON_TRAIT:com.sample.XXXInfo\"\n}}\n } ]\n}"
}
Environment
- Red Hat JBoss BPM Suite
- 6.2.x
- 6.3.0
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.