驳回重新提交后各标志位重置

This commit is contained in:
wangliwen 2022-05-18 10:24:44 +08:00
parent 02fa716c48
commit ef50bd85b3
1 changed files with 5 additions and 2 deletions

View File

@ -43,8 +43,11 @@ public class RejectController {
combineResultMap.putAll(task.getProcessVariables());
combineResultMap.putAll(params);
taskService.setVariables(task.getId(), combineResultMap); // 更新
taskService.setVariable(task.getId(), "backToFirst", Boolean.FALSE); //
taskService.setVariable(task.getId(), "completeEntry", Boolean.FALSE); //
taskService.setVariable(task.getId(), "backToFirst", Boolean.FALSE); // 标识驳回标签false
taskService.setVariable(task.getId(), "completeEntry", Boolean.FALSE); // 标志为非首次录入
taskService.setVariable(task.getId(), "reject", Boolean.FALSE); // 标识流程中是否存在拒绝false
taskService.setVariable(task.getId(), "termination", Boolean.FALSE); // 流程直接被终止 false
taskService.setVariable(task.getId(), "backPreviousTask", Boolean.FALSE); // 回退任务到上一节点 false
Optional<SysUserDTO> userDTOOptional = Optional.ofNullable(sysUserService.get(Long.valueOf(task.getAssignee())));
String name = userDTOOptional.isPresent() ? userDTOOptional.get().getRealName() : "";
actTaskService.completeTask(task.getId(), name + "重新发起审核");