In the 2.3.7 section of the doc, there is the following code which contains “processInstance”, but we don’t know where it comes from :
HistoryService historyService = processEngine.getHistoryService();
List activities =
historyService.createHistoricActivityInstanceQuery()
.processInstanceId(processInstance.getId())
.finished()
.orderByHistoricActivityInstanceEndTime().asc()
.list();
Do you know how to get processInstance ?