# setVariables(String executionId, Map\<String,? extends Object\> variables),what is execution id?

**URL:** <https://forum.flowable.org/t/setvariables-string-executionid-map-string-extends-object-variables-what-is-execution-id/680>\
**Category:** Uncategorized\
**Created:** [June 28, 2017, 5:23pm UTC](https://forum.flowable.org/t/setvariables-string-executionid-map-string-extends-object-variables-what-is-execution-id/680 "2017-06-28T17:23:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vibhu\_Kumar](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/vibhu_kumar/32/219_2.png) [@Vibhu\_Kumar](https://forum.flowable.org/u/Vibhu_Kumar)\
**Post date:** [June 28, 2017, 5:23pm UTC](https://forum.flowable.org/t/setvariables-string-executionid-map-string-extends-object-variables-what-is-execution-id/680/1 "2017-06-28T17:23:22Z")

</div>

In RutimeService there is method setVariables(String executionId, Map\<String,? extends Object\> variables)-  
what is the execution id here and how to get this execution id .

---

<div class="post-metadata">

**Author:** ![tijs](https://avatars.discourse-cdn.com/v4/letter/t/bc79bd/32.png) [@tijs](https://forum.flowable.org/u/tijs)\
**Post date:** [June 29, 2017, 6:37am UTC](https://forum.flowable.org/t/setvariables-string-executionid-map-string-extends-object-variables-what-is-execution-id/680/2 "2017-06-29T06:37:41Z")

</div>

Hi,

The execution id can be a process instance id or the execution id of a scoped execution in the process instance. For each active token in the process instance, an execution is present in the ACT\_RU\_EXECUTION table. In most cases you just want to use the process instance id.

Best regards,

Tijs
