# Waiting for a workflow state in interactive applications

**URL:** <https://community.temporal.io/t/waiting-for-a-workflow-state-in-interactive-applications/486>\
**Category:** Community Support\
**Tags:** go-sdk\
**Created:** [August 18, 2020, 10:57pm UTC](https://community.temporal.io/t/waiting-for-a-workflow-state-in-interactive-applications/486 "2020-08-18T22:57:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrsaints](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/mrsaints/32/118_2.png) [@mrsaints](https://community.temporal.io/u/mrsaints)\
**Post date:** [August 18, 2020, 10:57pm UTC](https://community.temporal.io/t/waiting-for-a-workflow-state-in-interactive-applications/486/1 "2020-08-18T22:57:06Z")

</div>

In an interactive application use-case, a customer may transition from one screen to another based on the state of the workflow (e.g. various activities may require completion in background before we can progress).

Is there currently anything in the client SDK to “await” for a specific state? I know there is `Await`, and `AwaitWithTimeout`, but I believe they are for use within a workflow itself, not from a client.

The way I currently see this being do-able is by polling `QueryWorkflow` until some criteria is met.

---

<div class="post-metadata">

**Author:** ![madhu](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@madhu](https://community.temporal.io/u/madhu)\
**Post date:** [August 19, 2020, 6:14am UTC](https://community.temporal.io/t/waiting-for-a-workflow-state-in-interactive-applications/486/2 "2020-08-19T06:14:10Z")

</div>

> [@mrsaints](#):
>
> y I currently see this being do-able is by polling `QueryWorkflow` until some criteria is met.

how about query to expose the state , and client can take decision based on the query result

e.g

> Workflow{  
> @QueryMethod  
> String getState()  
> {  
> return currentState;  
> }  
> }

---

<div class="post-metadata">

**Author:** ![maxim](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/maxim/32/8_2.png) [@maxim](https://community.temporal.io/u/maxim)\
**Post date:** [August 19, 2020, 4:22pm UTC](https://community.temporal.io/t/waiting-for-a-workflow-state-in-interactive-applications/486/3 "2020-08-19T16:22:16Z")

</div>

See [this discussion](https://community.temporal.io/t/signalling-system-human-driven-workflows/160).
