Best way to obtain information about all user-tasks?

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.

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.

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

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