# List all open user tasks of a process instance

**URL:** <https://forum.flowable.org/t/list-all-open-user-tasks-of-a-process-instance/4798>\
**Category:** Flowable Engine\
**Created:** [October 31, 2019, 3:04am UTC](https://forum.flowable.org/t/list-all-open-user-tasks-of-a-process-instance/4798 "2019-10-31T03:04:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tommy](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/tommy/32/1438_2.png) [@tommy](https://forum.flowable.org/u/tommy)\
**Post date:** [October 31, 2019, 3:04am UTC](https://forum.flowable.org/t/list-all-open-user-tasks-of-a-process-instance/4798/1 "2019-10-31T03:04:57Z")

</div>

I try get all user tasks of a process instance.  
example. I have 3 three user task (start --\> My Task 1 --\> My Task 2 --\> My Task 3 --\> End).  
I started process and after that I use TaskService.createQueryTask() , it only show 1 task (My Task 1).

I want to show list all tasks ( My Task 1, My Task 2, My Task 3) when started process.  
Because. I want to assignee dynamic when started process.

Please let my know how to get all tasks of process instance.

---

<div class="post-metadata">

**Author:** ![tjmac](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@tjmac](https://forum.flowable.org/u/tjmac)\
**Post date:** [October 31, 2019, 11:54am UTC](https://forum.flowable.org/t/list-all-open-user-tasks-of-a-process-instance/4798/2 "2019-10-31T11:54:37Z")

</div>

createTaskQuery will only show the current task that is open. My Task 1 will be the only task in wait state when the process is initiated. Showing the other task that follows you may need to use the api to query the model.

---

<div class="post-metadata">

**Author:** ![tjmac](https://avatars.discourse-cdn.com/v4/letter/t/bc8723/32.png) [@tjmac](https://forum.flowable.org/u/tjmac)\
**Post date:** [October 31, 2019, 11:58am UTC](https://forum.flowable.org/t/list-all-open-user-tasks-of-a-process-instance/4798/3 "2019-10-31T11:58:14Z")

</div>

The api I forgot to mention is repositoryService.getBpmnModel

---

<div class="post-metadata">

**Author:** ![tommy](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/tommy/32/1438_2.png) [@tommy](https://forum.flowable.org/u/tommy)\
**Post date:** [November 1, 2019, 1:48am UTC](https://forum.flowable.org/t/list-all-open-user-tasks-of-a-process-instance/4798/4 "2019-11-01T01:48:58Z")

</div>

Thank you. I got a Process model and list flow elements.
