Get the values from execute(DelegateExecution execution) method

Hello,

I have user task and followed by service task which is calling external service like below

public void execute(DelegateExecution execution) {
calling external Service
}

I am getting some response back from external service and I want return back with REST service . Is there any way to pass the values back to REST service from execute(DelegateExecution execution) method.

I am stuck with this scenario.

Hi Josein,

yes. Store output of calling external Service in a variable (transient or persistent) and pass it to the rest service.

Regards
Martin

1 Like

Thank you . Its worked for me.