Activiti processEngine: get task completed and not complted by a given user

cancel
Showing results for 
Search instead for 
Did you mean: 
david12
Member II

Activiti processEngine: get task completed and not complted by a given user

Jump to solution

I start learning Activiti. I would like to get a  list of completed tasks for a given user and another list of tasks not completed yet by a given user  with the processEngine (not the REST API).

Thank you.

David

1 Solution

Accepted Solutions
daisuke-yoshimo
Senior Member

Re: Activiti processEngine: get task completed and not complted by a given user

Jump to solution

HistoricTaskInstanceQuery matches your case.

HistoryService (Activiti - Engine 5.22.0 API) 

historyService.createHistoricTaskInstanceQuery().finished().taskAssignee('userCd')

historyService.createHistoricTaskInstanceQuery().unfinished().taskAssignee('userCd')

View solution in original post

2 Replies
daisuke-yoshimo
Senior Member

Re: Activiti processEngine: get task completed and not complted by a given user

Jump to solution

HistoricTaskInstanceQuery matches your case.

HistoryService (Activiti - Engine 5.22.0 API) 

historyService.createHistoricTaskInstanceQuery().finished().taskAssignee('userCd')

historyService.createHistoricTaskInstanceQuery().unfinished().taskAssignee('userCd')

david12
Member II

Re: Activiti processEngine: get task completed and not complted by a given user

Jump to solution

Thank you daisuke-yoshimoto.