I have bpmn which starts with MessageStartEvent >> ServiceTask >> MessageEndEvent
ServiceTask is making call to another endpoint to retrieve PDF(basically json response with PDF in base64 format).
My requirement is if I start the process using REST call(POST call to http://localhost:8080/engine-rest/message) I should return PDF(json response with PDF in base64 format) as response back but currently I am getting 204 No Content.
What config changes I need to do so that it works in synchronous fashion where it return PDF(json response with PDF in base64 format) instead of 204.
you can add the parameter variablesInResultEnabled to the message correlation call and get a response from the invocation: Correlate a Message | docs.camunda.org
I added resultEnabled & variablesInResultEnabled in the input JSON request and triggered but I am getting immediate response back with status code 200 and JSON which has only processVariables which I have sent as part of input.