Read all the completed and upcoming user tasks in a process instance

Hi There,

Is there any REST API to know all the upcoming/finished user task in the process(by process key or instance). Say, a process having multiple tasks including some user tasks. I want to build a progress bar which just shows user tasks in order of completed and upcoming. I know that the upcoming task order might be tricky to draw but I am fine to represent those as expected user tasks. I would fix the order once the all the tasks in the process are completed.

Please suggest how can I achieve this.

Regards,
Vaibhav

Hi Vaibhav.

You can parse process definition (https://flowable.org/docs/userguide/index.html#_process_definitions) to get list of all tasks. For list of finished tasks use https://flowable.org/docs/userguide/index.html#_history.

Regards
Martin