How to collect all process finished tasks (not only user tasks)
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-29-2015 07:55 AM
Hi folks. I wanna know if theres any way to collect all finished tasks of a process definition, not only User Tasks, but also script tasks, email tasks, etc.
Thanks folks.
Thanks folks.
Labels:
- Labels:
-
Archive
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2015 03:14 AM
Hi,
yes, it is.
Use history service with the proper history level.
Regards
Martin
yes, it is.
Use history service with the proper history level.
Regards
Martin
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2015 10:31 AM
Thank you Martin. It works.
Code used:
<code>
List<HistoricActivityInstance> instances = historyService.createHistoricActivityInstanceQuery()
.processInstanceId(processInstanceId)
.list();
</code>
Now i can display the process state on diagram
Code used:
<code>
List<HistoricActivityInstance> instances = historyService.createHistoricActivityInstanceQuery()
.processInstanceId(processInstanceId)
.list();
</code>
Now i can display the process state on diagram

