feat(REQ-4418) - 处理转交时的审批人 nodeId 校验问题

This commit is contained in:
wangli 2025-08-27 17:54:11 +08:00
parent 735848c5f4
commit 10e3032af4

View File

@ -132,7 +132,7 @@ public class CustomTransferUserTaskCmd extends AbstractCommand<Void> implements
private void validTargetAssigneeNodeId(String processDefinitionId) {
BpmnModel bpmnModel = ProcessDefinitionUtil.getBpmnModel(processDefinitionId);
Integer categoryVersion = getCategoryVersion(bpmnModel.getMainProcess()).orElse(0);
if (categoryVersion > 0 && StringUtils.isNotBlank(targetTaskAssignee.getNodeId())) {
if (categoryVersion > 0 && StringUtils.isBlank(targetTaskAssignee.getNodeId())) {
throw new WorkflowEngineException(ASSIGNEE_NODE_ID_NOT_EXISTS, "审批人");
}
}