# Get the values from execute(DelegateExecution execution) method

**URL:** <https://forum.flowable.org/t/get-the-values-from-execute-delegateexecution-execution-method/6048>\
**Category:** Uncategorized\
**Created:** [May 18, 2020, 6:25pm UTC](https://forum.flowable.org/t/get-the-values-from-execute-delegateexecution-execution-method/6048 "2020-05-18T18:25:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![josein007](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@josein007](https://forum.flowable.org/u/josein007)\
**Post date:** [May 18, 2020, 6:25pm UTC](https://forum.flowable.org/t/get-the-values-from-execute-delegateexecution-execution-method/6048/1 "2020-05-18T18:25:10Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![martin.grofcik](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/martin.grofcik/32/71_2.png) [@martin.grofcik](https://forum.flowable.org/u/martin.grofcik)\
**Post date:** [May 20, 2020, 12:32pm UTC](https://forum.flowable.org/t/get-the-values-from-execute-delegateexecution-execution-method/6048/2 "2020-05-20T12:32:34Z")

</div>

Hi Josein,

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

Regards  
Martin

---

<div class="post-metadata">

**Author:** ![josein007](https://avatars.discourse-cdn.com/v4/letter/j/85f322/32.png) [@josein007](https://forum.flowable.org/u/josein007)\
**Post date:** [June 5, 2020, 4:39pm UTC](https://forum.flowable.org/t/get-the-values-from-execute-delegateexecution-execution-method/6048/3 "2020-06-05T16:39:13Z")

</div>

Thank you . Its worked for me.
