|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.qs.serve.modules.bpm.service.impl; |
|
|
|
|
|
|
|
import com.qs.serve.common.util.Assert; |
|
|
|
import com.qs.serve.common.util.AuthContextUtils; |
|
|
|
import com.qs.serve.modules.bpm.common.consts.ProcessConstants; |
|
|
|
import com.qs.serve.modules.bpm.common.enums.FlowComment; |
|
|
|
import com.qs.serve.modules.bpm.conf.FlowServiceFactory; |
|
|
@ -59,7 +60,7 @@ public class IFlowDefinitionServiceImpl extends FlowServiceFactory implements IF |
|
|
|
// 给第一步申请人节点设置任务执行人和意见 todo:第一个节点不设置为申请人节点有点问题?
|
|
|
|
Task task = taskService.createTaskQuery().processInstanceId(processInstance.getProcessInstanceId()).singleResult(); |
|
|
|
if (Objects.nonNull(task)) { |
|
|
|
taskService.addComment(task.getId(), processInstance.getProcessInstanceId(), FlowComment.NORMAL.getType(), "sysUser.getNickName()发起流程申请"); |
|
|
|
taskService.addComment(task.getId(), processInstance.getProcessInstanceId(), FlowComment.NORMAL.getType(), AuthContextUtils.getLoginUser().getNick() +"发起流程申请"); |
|
|
|
// taskService.setAssignee(task.getId(), sysUser.getUserId().toString());
|
|
|
|
taskService.complete(task.getId(), variables); |
|
|
|
} |
|
|
|