發起流程時,配置activiti:initiator屬性,而且在代碼中:java
Authentication.setAuthenticatedUserId(userId);spa
其中,userId對應流程發起人code
查詢某人發起的流程關鍵代碼:it
@Autowiredio
private HistoryService historyService;class
List<HistoricProcessInstance> historicProcessInstanceList = historyService.createHistoricProcessInstanceQuery().startedBy(userId).list();