# Script Task | Execution object | What is it?

**URL:** <https://forum.flowable.org/t/script-task-execution-object-what-is-it/745>\
**Category:** Flowable Application\
**Created:** [July 20, 2017, 7:21pm UTC](https://forum.flowable.org/t/script-task-execution-object-what-is-it/745 "2017-07-20T19:21:21Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mmanzur](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@mmanzur](https://forum.flowable.org/u/mmanzur)\
**Post date:** [July 20, 2017, 7:21pm UTC](https://forum.flowable.org/t/script-task-execution-object-what-is-it/745/1 "2017-07-20T19:21:22Z")

</div>

Hello, I’m starting with Flowable and doing some tests I used a script task to set instance variables with the execution.setVariable (x, y) method. My question is how can I know that other methods are in “execution” and what are their uses. I can not find this information in the documentation.  
Example

> execution.setVariable(“personInstanceVar”, person );

Thank you very much

Marcelo

---

<div class="post-metadata">

**Author:** ![joram](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joram/32/26_2.png) [@joram](https://forum.flowable.org/u/joram)\
**Post date:** [July 23, 2017, 8:20am UTC](https://forum.flowable.org/t/script-task-execution-object-what-is-it/745/2 "2017-07-23T08:20:12Z")

</div>

The execution object is a java object that implements (amongst other, but most importantly) the following intefaces:

- [http://www.flowable.org/docs/javadocs/org/flowable/engine/runtime/Execution.html](http://www.flowable.org/docs/javadocs/org/flowable/engine/runtime/Execution.html)
- [http://www.flowable.org/docs/javadocs/org/flowable/engine/delegate/VariableScope.html](http://www.flowable.org/docs/javadocs/org/flowable/engine/delegate/VariableScope.html)

All methods in those interfaces are applicable to the execution object in a scrip.

---

<div class="post-metadata">

**Author:** ![mmanzur](https://avatars.discourse-cdn.com/v4/letter/m/97f17d/32.png) [@mmanzur](https://forum.flowable.org/u/mmanzur)\
**Post date:** [July 24, 2017, 1:43pm UTC](https://forum.flowable.org/t/script-task-execution-object-what-is-it/745/3 "2017-07-24T13:43:05Z")

</div>

Thanks Joram, that’s what i was looking for

Marcelo

---

<div class="post-metadata">

**Author:** ![Joy](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/joy/32/3635_2.png) [@Joy](https://forum.flowable.org/u/Joy)\
**Post date:** [January 16, 2025, 4:38pm UTC](https://forum.flowable.org/t/script-task-execution-object-what-is-it/745/4 "2025-01-16T16:38:39Z")

</div>

the links have been update i suppose. could you please provide new ones? also, how is this “execution” object instance is available directly? is there also “runtimeService” available if i wanna use inside a groovy script task?

---

<div class="post-metadata">

**Author:** ![valentin](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/valentin/32/3367_2.png) [@valentin](https://forum.flowable.org/u/valentin)\
**Post date:** [January 19, 2025, 6:38pm UTC](https://forum.flowable.org/t/script-task-execution-object-what-is-it/745/5 "2025-01-19T18:38:16Z")

</div>

Hi @Joy,

those are the updated links:

> **[Execution (Flowable - Engine 7.1.0 API)](https://www.flowable.com/open-source/docs/javadocs/org/flowable/engine/runtime/Execution.html)**
>
> declaration: package: org.flowable.engine.runtime, interface: Execution

> **[VariableScope (Flowable - Variable Service API 7.1.0 API)](https://www.flowable.com/open-source/docs/variable-javadocs/org/flowable/variable/api/delegate/VariableScope.html)**
>
> declaration: package: org.flowable.variable.api.delegate, interface: VariableScope

Valentin
