# Programmatically obtain system.util.invokeAsynchronous description

**URL:** <https://forum.inductiveautomation.com/t/programmatically-obtain-system-util-invokeasynchronous-description/60089>\
**Category:** Ignition\
**Tags:** scripting\
**Created:** [May 26, 2022, 7:34pm UTC](https://forum.inductiveautomation.com/t/programmatically-obtain-system-util-invokeasynchronous-description/60089 "2022-05-26T19:34:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user69](https://avatars.discourse-cdn.com/v4/letter/u/58f4c7/32.png) [@user69](https://forum.inductiveautomation.com/u/user69)\
**Post date:** [May 26, 2022, 7:34pm UTC](https://forum.inductiveautomation.com/t/programmatically-obtain-system-util-invokeasynchronous-description/60089/1 "2022-05-26T19:34:49Z")

</div>

Sorry if this has been asked already-- is it possible to obtain the description passed to `system.util.invokeAsynchronous` programmatically? Will it show up in the thread’s info with `system.util.threadDump`?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 26, 2022, 8:50pm UTC](https://forum.inductiveautomation.com/t/programmatically-obtain-system-util-invokeasynchronous-description/60089/2 "2022-05-26T20:50:52Z")

</div>

From what context? Are you trying to retrieve the description from inside the thread? The immediate thing that comes to mind is just to pass it in directly…

That said, you could in theory access it from the `ScriptContext` static method:  
[https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.16/com/inductiveautomation/ignition/common/script/ScriptContext.html#description()](https://files.inductiveautomation.com/sdk/javadoc/ignition81/8.1.16/com/inductiveautomation/ignition/common/script/ScriptContext.html#description())

---

<div class="post-metadata">

**Author:** ![user69](https://avatars.discourse-cdn.com/v4/letter/u/58f4c7/32.png) [@user69](https://forum.inductiveautomation.com/u/user69)\
**Post date:** [May 26, 2022, 11:38pm UTC](https://forum.inductiveautomation.com/t/programmatically-obtain-system-util-invokeasynchronous-description/60089/3 "2022-05-26T23:38:37Z")

</div>

From outside the thread. A literal context that is effectively what I’m looking for is a timer script on the gateway that evaluates the state of threads spawned by `system.util.invokeAsynchronous` based on their given description.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [May 27, 2022, 12:26am UTC](https://forum.inductiveautomation.com/t/programmatically-obtain-system-util-invokeasynchronous-description/60089/4 "2022-05-27T00:26:02Z")

</div>

Consider starting from the static `com.inductiveautomation.ignition.common.script.ScriptManager.executingScripts()` method.
