Connector Service Task Response handling

My workflow has 5 service tasks(all of them are microservices implemented using connector variables)
I want to take the response of the 1st service task and give it along with the payload to the second ,so on and so forth.
Would that be possible…Could you please advice.

Thanks and Regards,
Albin Chandy

Hi @Albin_Chandy,
yes, this is possible, you can use Service tasks with Connector configured with Input and output parameters. Output parameter will store the result of the service call in the process variable, which then can be used in “payload” input parameter in the next task. Take a look at this simple example: https://github.com/camunda/camunda-bpm-examples/tree/master/servicetask/rest-service