unique check before import ProcessDefinitions

This commit is contained in:
张世鸣 2020-05-07 15:36:51 +08:00
parent badc05c916
commit ec2509fc46

View File

@ -783,9 +783,12 @@ public class ProcessDefinitionService extends BaseDAGService {
}
//unique check
result = verifyProcessDefinitionName(loginUser, currentProjectName, processDefinitionName);
Status status = (Status) result.get(Constants.STATUS);
if (!Status.SUCCESS.equals(status)) {
Map<String, Object> checkResult = verifyProcessDefinitionName(loginUser, currentProjectName, processDefinitionName);
Status status = (Status) checkResult.get(Constants.STATUS);
if (Status.SUCCESS.equals(status)) {
putMsg(result, Status.SUCCESS);
} else {
result.putAll(checkResult);
return false;
}