mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-30 15:16:41 +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.dromara.workflow.utils.WorkflowUtils;
|
||||||
import org.flowable.common.engine.impl.identity.Authentication;
|
import org.flowable.common.engine.impl.identity.Authentication;
|
||||||
import org.flowable.engine.HistoryService;
|
import org.flowable.engine.HistoryService;
|
||||||
|
import org.flowable.engine.IdentityService;
|
||||||
import org.flowable.engine.RuntimeService;
|
import org.flowable.engine.RuntimeService;
|
||||||
import org.flowable.engine.TaskService;
|
import org.flowable.engine.TaskService;
|
||||||
import org.flowable.engine.history.HistoricProcessInstance;
|
import org.flowable.engine.history.HistoricProcessInstance;
|
||||||
@ -49,6 +50,7 @@ public class ActTaskServiceImpl implements IActTaskService {
|
|||||||
private final RuntimeService runtimeService;
|
private final RuntimeService runtimeService;
|
||||||
private final TaskService taskService;
|
private final TaskService taskService;
|
||||||
private final HistoryService historyService;
|
private final HistoryService historyService;
|
||||||
|
private final IdentityService identityService;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 启动任务
|
* 启动任务
|
||||||
@ -73,6 +75,7 @@ public class ActTaskServiceImpl implements IActTaskService {
|
|||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
// 设置启动人
|
// 设置启动人
|
||||||
|
identityService.setAuthenticatedUserId(String.valueOf(LoginHelper.getUserId()));
|
||||||
Authentication.setAuthenticatedUserId(String.valueOf(LoginHelper.getUserId()));
|
Authentication.setAuthenticatedUserId(String.valueOf(LoginHelper.getUserId()));
|
||||||
// 启动流程实例(提交申请)
|
// 启动流程实例(提交申请)
|
||||||
Map<String, Object> variables = startProcessBo.getVariables();
|
Map<String, Object> variables = startProcessBo.getVariables();
|
||||||
|
Loading…
Reference in New Issue
Block a user