caishunfeng commented on code in PR #12096:
URL: https://github.com/apache/dolphinscheduler/pull/12096#discussion_r977104771


##########
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java:
##########
@@ -1315,7 +1315,6 @@ protected boolean checkAndImport(User loginUser, long 
projectCode, Map<String, O
             return false;
         }
         processDefinition.setName(importProcessDefinitionName);
-        processDefinition.setId(0);

Review Comment:
   When import workflow, it should create a new id, so it's better to 
setId(null), but not use the origin id.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to