发起流程时,配置activiti:initiator属性,并且在代码中:

Authentication.setAuthenticatedUserId(userId);

 

其中,userId对应流程发起人

查询某人发起的流程关键代码:


@Autowired

private HistoryService historyService;

List<HistoricProcessInstance> historicProcessInstanceList = historyService.createHistoricProcessInstanceQuery().startedBy(userId).list();

 

相关文章:

  • 2022-12-23
  • 2021-05-30
  • 2021-09-07
  • 2022-01-01
  • 2022-12-23
  • 2021-09-17
猜你喜欢
  • 2022-01-11
  • 2022-12-23
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案