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
HistoricTaskInstanceQuery matches your case.
HistoryService (Activiti - Engine 5.22.0 API)
historyService.createHistoricTaskInstanceQuery().finished().taskAssignee('userCd')
historyService.createHistoricTaskInstanceQuery().unfinished().taskAssignee('userCd')
Thank you daisuke-yoshimoto.