# Best way to obtain information about all user-tasks?

**URL:** <https://forum.flowable.org/t/best-way-to-obtain-information-about-all-user-tasks/7211>\
**Category:** Flowable Engine\
**Created:** [December 11, 2020, 8:23am UTC](https://forum.flowable.org/t/best-way-to-obtain-information-about-all-user-tasks/7211 "2020-12-11T08:23:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mikle](https://avatars.discourse-cdn.com/v4/letter/m/bbce88/32.png) [@Mikle](https://forum.flowable.org/u/Mikle)\
**Post date:** [December 11, 2020, 8:23am UTC](https://forum.flowable.org/t/best-way-to-obtain-information-about-all-user-tasks/7211/1 "2020-12-11T08:23:35Z")

</div>

Hi. I am new in Flowable.

I want to get information (start date, end date, task name, assignee) about all the User-tasks (completed and running) of process instance with selected outcomes for completed tasks.  
What is the best way to do it?  
Do I need to use both _historic_ and _runtime_ services?  
How to get information about selected outcomes (What is the best way to join outcomes variables with tasks)?

Thanks.

---

<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:** [December 23, 2020, 10:35am UTC](https://forum.flowable.org/t/best-way-to-obtain-information-about-all-user-tasks/7211/2 "2020-12-23T10:35:24Z")

</div>

Hey @Mikle,

The runtime data is a subset of the history data. So no you don’t need both _historic_ and _runtime_, you can just use the _historic_ services.

> [@Mikle](#):
>
> How to get information about selected outcomes (What is the best way to join outcomes variables with tasks)?

Best is would be to store the outcomes in a specific variable and then query on that variable being present in the process variables (e.g. `HistoricTaskInstanceQuery#processVariableValueEquals`).

Cheers,  
Filip

---

<div class="post-metadata">

**Author:** ![jjmr](https://yyz1.discourse-cdn.com/flex035/user_avatar/forum.flowable.org/jjmr/32/3166_2.png) [@jjmr](https://forum.flowable.org/u/jjmr)\
**Post date:** [June 6, 2023, 2:50pm UTC](https://forum.flowable.org/t/best-way-to-obtain-information-about-all-user-tasks/7211/3 "2023-06-06T14:50:42Z")

</div>

Sorry for re-opening an old question but I’d like to ask for some clarification: using only the History is still valid if we activate the async mode?  
I’m thinking that temporarily some information in the runtime could not be yet in the history because the async job is not yet executed.

Cheers,  
Juanjo
