process的通知规则中可以设置通知时机为结束时
结束时通知可以在onAfterFinish中通过ProcessControl获取执行人,具体实现如下:
public static void noticeFlowProcessAfterFinish() { ProcessControl flowControl = (ProcessControl) ProcessUtils.getProcessContext().getProcessControl(); for (ProcessControlItem to : flowControl.getNotices()) { for (OrgUnit ect : to.getExecutors()) { String fid = ect.getFID(); String fname = ect.getFName(); System.out.println("==========人员名称sName=========" + OrgUtils.getPersonNameByFName(fid, fname)); } } }
评一波