# How to retrieve/visualize workfow definition & execution status

**URL:** <https://community.temporal.io/t/how-to-retrieve-visualize-workfow-definition-execution-status/6715>\
**Category:** Community Support\
**Created:** [December 13, 2022, 8:00am UTC](https://community.temporal.io/t/how-to-retrieve-visualize-workfow-definition-execution-status/6715 "2022-12-13T08:00:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bidixa](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@Bidixa](https://community.temporal.io/u/Bidixa)\
**Post date:** [December 13, 2022, 8:00am UTC](https://community.temporal.io/t/how-to-retrieve-visualize-workfow-definition-execution-status/6715/1 "2022-12-13T08:00:30Z")

</div>

Hi,

I am looking towards ways in Temporal about how do I get the overall workflow definition and current execution status for a particular execution. What I mean by workflow definition is that I want to get all the sequence and various states which the current workflow is defined upon. Since workflows are defined as code, if I have to visually depict my workflow as a flow chart or graph or something which I can transform to a visual model for the end user (say, in UI), is that possible? For example, in tools like Camunda or Flowable, its possible to know the workflow as a BPMN model and also it is possible to know where my current working flow state is in by looking at the BPMN diagram. Is there a way I can achieve the same in Temporal (programmatically)?

Any help on this will be appreciated.

Regards,  
BD

---

<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:** [December 13, 2022, 3:51pm UTC](https://community.temporal.io/t/how-to-retrieve-visualize-workfow-definition-execution-status/6715/2 "2022-12-13T15:51:31Z")

</div>

You use the workflow query feature to return a state of a workflow. This state can be in the form that is suitable to generate a user friendly UI/diagram.

---

<div class="post-metadata">

**Author:** ![Bidixa](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@Bidixa](https://community.temporal.io/u/Bidixa)\
**Post date:** [December 14, 2022, 4:06am UTC](https://community.temporal.io/t/how-to-retrieve-visualize-workfow-definition-execution-status/6715/3 "2022-12-14T04:06:22Z")

</div>

Thank you @maxim.
