# Get All Active User Tasks including the Subprocess(invoked through Call Activity)

**URL:** <https://forum.flowable.org/t/get-all-active-user-tasks-including-the-subprocess-invoked-through-call-activity/9138>\
**Category:** Uncategorized\
**Created:** [March 23, 2022, 3:20pm UTC](https://forum.flowable.org/t/get-all-active-user-tasks-including-the-subprocess-invoked-through-call-activity/9138 "2022-03-23T15:20:16Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Martin1](https://avatars.discourse-cdn.com/v4/letter/m/3be4f8/32.png) [@Martin1](https://forum.flowable.org/u/Martin1)\
**Post date:** [March 23, 2022, 3:20pm UTC](https://forum.flowable.org/t/get-all-active-user-tasks-including-the-subprocess-invoked-through-call-activity/9138/1 "2022-03-23T15:20:16Z")

</div>

Hi,  
We are using a Flowable Engine embedded in a Spring boot application . We have a process model which has several Call Activity . Is there a possibility to fetch all the active user tasks of both Parent and Child process .

We are using the below approach : -  
taskService.createTaskQuery().processInstanceIdWithChildren(parentProcessId).list();

but it is giving us empty list .

Any chance we can achieve this ?

Thank you

---

<div class="post-metadata">

**Author:** ![filiphr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/filiphr/32/315_2.png) [@filiphr](https://forum.flowable.org/u/filiphr)\
**Post date:** [August 17, 2022, 8:28am UTC](https://forum.flowable.org/t/get-all-active-user-tasks-including-the-subprocess-invoked-through-call-activity/9138/2 "2022-08-17T08:28:07Z")

</div>

Hey @Martin1,

The `processInstanceIdWithChildren` can be used and has effect when the entity links are enabled on the process engine configuration. If you do not have that enabled then it won’t have any effect.

Cheers,  
Filip
