1.流程图设置
2.启动时代码
//设置流程启动人
identityService.setAuthenticatedUserId(userId);
ProcessInstance processInstance = runtimeService.startProcessInstanceById(procDefId,businessKey);
// 清空
identityService.setAuthenticatedUserId(null);
1.流程图设置
2.启动时代码
//设置流程启动人
identityService.setAuthenticatedUserId(userId);
ProcessInstance processInstance = runtimeService.startProcessInstanceById(procDefId,businessKey);
// 清空
identityService.setAuthenticatedUserId(null);