mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-29 22:56:40 +08:00
update 优化流程启动
This commit is contained in:
parent
7b034a232b
commit
2dff183e4f
@ -20,6 +20,7 @@ import org.dromara.workflow.service.IActTaskService;
|
||||
import org.dromara.workflow.utils.WorkflowUtils;
|
||||
import org.flowable.common.engine.impl.identity.Authentication;
|
||||
import org.flowable.engine.HistoryService;
|
||||
import org.flowable.engine.IdentityService;
|
||||
import org.flowable.engine.RuntimeService;
|
||||
import org.flowable.engine.TaskService;
|
||||
import org.flowable.engine.history.HistoricProcessInstance;
|
||||
@ -49,6 +50,7 @@ public class ActTaskServiceImpl implements IActTaskService {
|
||||
private final RuntimeService runtimeService;
|
||||
private final TaskService taskService;
|
||||
private final HistoryService historyService;
|
||||
private final IdentityService identityService;
|
||||
|
||||
/**
|
||||
* 启动任务
|
||||
@ -73,6 +75,7 @@ public class ActTaskServiceImpl implements IActTaskService {
|
||||
return map;
|
||||
}
|
||||
// 设置启动人
|
||||
identityService.setAuthenticatedUserId(String.valueOf(LoginHelper.getUserId()));
|
||||
Authentication.setAuthenticatedUserId(String.valueOf(LoginHelper.getUserId()));
|
||||
// 启动流程实例(提交申请)
|
||||
Map<String, Object> variables = startProcessBo.getVariables();
|
||||
|
Loading…
Reference in New Issue
Block a user