feat(REQ-4586) - 优化节点计算异常信息的记录

This commit is contained in:
wangli 2025-07-09 15:24:11 +08:00
parent 2306a35afe
commit 17178eaecb

View File

@ -150,16 +150,30 @@ public class NextActivityConfigCheckJobHandler extends AbstractJobHandler implem
try {
assigners.addAll(approverSelect(ApproverEmptyHandleTypeEnum.transferToAdmin.getType(), userTask,
execution, true));
if (CollectionUtils.isEmpty(assigners)) {
throw new IllegalArgumentException("审批人为空后转交管理员仍然为空");
}
} catch (Exception e) {
throw new RuntimeException("审批人为空后转交管理员失败, 内部计算信息:" + e.getMessage());
if (e instanceof IllegalArgumentException) {
throw new RuntimeException(e.getMessage());
} else {
throw new RuntimeException("审批人为空后转交管理员失败, 内部计算信息:" + e.getMessage());
}
}
break;
case specifyAssignee:
try {
assigners.addAll(approverSelect(ApproverEmptyHandleTypeEnum.specifyAssignee.getType(), userTask,
execution, true));
if (CollectionUtils.isEmpty(assigners)) {
throw new IllegalArgumentException("审批人为空后转交指定人员仍然为空,可能被指定人员已离职");
}
} catch (Exception e) {
throw new RuntimeException("审批人为空后转交指定人员失败,内部计算信息:" + e.getMessage());
if (e instanceof IllegalArgumentException) {
throw new RuntimeException(e.getMessage());
} else {
throw new RuntimeException("审批人为空后转交指定人员失败,内部计算信息:" + e.getMessage());
}
}
break;
default: