Hello guys,
I have a Camunda process with a message intermediate catch event in the middle. I use the REST API to start the process and to correlate the message for the intermediate catch. The correlation works perfectly, but I have a Problem with returning the varaibles from the intermediate REST call.
The documentation (Camunda Platform REST API) specifies that the parameters resultEnabled: true and variablesInResultEnabled: true should return the process variables in the JSON Response. But I can’t get them.
My start Requests looks like this:
{
"messageName":"Msg_ReceiveContract",
"resultEnabled":true,
"processVariables":{
"contractId":{
"value":"C11808bc-97fd-4f4c-8ccd-ce4f892f7669",
"type":"String"
}
}
}
The second Request:
{
"messageName":"Msg_ReceiveDocuments",
"all":true,
"resultEnabled":true,
"variablesInResultEnabled":true,
"correlationKeys":{
"contractId":{
"value":"C11808bc-97fd-4f4c-8ccd-ce4f892f7669",
"type":"String"
}
},
"processVariables":{
"contractId":{
"value":"C11808bc-97fd-4f4c-8ccd-ce4f892f7669",
"type":"String"
}
}
}
And the Response from the second Request:
[{
"resultType": "Execution",
"execution": {
"id": "731bfc67-9737-11e9-846b-024245f666c9",
"processInstanceId": "731bd552-9737-11e9-846b-024245f666c9",
"ended": true,
"tenantId": null
},
"processInstance": null
}]
My demo process looks like this:
ContractValidation.bpmn (4.7 KB)
Am I doing something wrong here or does anyone have tips how get the process variables in the response?
Best regards and thank you
Patrick