Pass response of one ServiceTask to the next connected node

Hello all,
This is first time I am experimenting with Camunda modeler. So do forgive my ignorance. I am having a look at the below plugin for designing custom tasks

I want to create a custom task(pre-defined service task) which does some work (e.g reaches out to a serviceA and fetches a token). Can I pass this data(token) retrieved by this service task to the next connected node using some mechanism? Lets say, can I save this data to some global var so that the next connected node can use it?

Please reply.
Thanks in advance.

Hi @sunil

This is no problem at all - if you’ve got a service task you can store a variable globally by using

execution.setVariable("varName", value);