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

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
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
Highlighted
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
Highlighted
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

Highlighted
Member II

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

Jump to solution

Thank you daisuke-yoshimoto.