feat(REQ-4418) - 处理转交时的审批人 nodeId 校验问题
This commit is contained in:
parent
735848c5f4
commit
10e3032af4
@ -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, "审批人");
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user