fix - 修复加签审批人操作异常

This commit is contained in:
wangli 2023-12-12 11:19:16 +08:00
parent 635c81107b
commit ec913b776a

View File

@ -325,14 +325,6 @@ public class BpmnProcessTaskServiceImpl implements BpmnProcessTaskService {
}
saveAttachment(dto.getAttachmentList(), instance.getId(), task.getId());
// 完成任务审批通过
// if (StringUtils.hasLength(task.getExecutionId())) {
taskService.complete(task.getId(), runtimeService.getVariables(task.getExecutionId()));
// } else {
//加签子任务 没有executionId
// taskService.complete(task.getId());
// }
//add by zuoqinbo 处理加签[分为向前加签和向后加签]或转交的任务
String parentTaskId = task.getParentTaskId();
if (StringUtils.hasLength(parentTaskId)) {
@ -360,6 +352,8 @@ public class BpmnProcessTaskServiceImpl implements BpmnProcessTaskService {
}
}
}
// 完成任务审批通过
taskService.complete(task.getId(), runtimeService.getVariables(task.getExecutionId()));
}
private void recursionCompleteParentTask(String parentTaskId) {