Send Response Back to the client from MODELER itself

Hello all,
I’m calling Message starting event from the POSTMAN


I have 4 rest services.I want to send response of 4TH service which is as below
back after the completion of the process

=============================
(Need to send this below response(it is from 4th service) to the POSTMAN on completion)

{
“grade”:“A”,
“Eligible”:“YES”
}

===========================
How to do this

Hi, you need to send the request with variablesInResultEnabled boolean set to true: variablesInResultEnabled A Boolean value that indicates whether the result of the correlation should contain process variables or not. The parameter resultEnabled should be set to true in order to use this it. The default value is false, which means the variables will not be returned.

For more information see: https://docs.camunda.org/manual/7.12/reference/rest/message/post-message/#correlate-with-result-and-variables

Joe

1 Like

Thanks @Beagler.It’s working

1 Like