mirror of
https://gitee.com/dolphinscheduler/DolphinScheduler.git
synced 2024-12-02 20:28:03 +08:00
unique check before import ProcessDefinitions
This commit is contained in:
parent
badc05c916
commit
ec2509fc46
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user