You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by ke...@apache.org on 2022/10/18 00:56:26 UTC
[dolphinscheduler] branch dev updated: When the workflow definition is copied, the operation user of the timed instance is changed to the current user. (#12400)
This is an automated email from the ASF dual-hosted git repository.
kerwin pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git
The following commit(s) were added to refs/heads/dev by this push:
new fccbe5593a When the workflow definition is copied, the operation user of the timed instance is changed to the current user. (#12400)
fccbe5593a is described below
commit fccbe5593ad2ceb1899524440858c938ef1ae98c
Author: Kerwin <37...@users.noreply.github.com>
AuthorDate: Tue Oct 18 08:56:19 2022 +0800
When the workflow definition is copied, the operation user of the timed instance is changed to the current user. (#12400)
---
.../dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java | 1 +
1 file changed, 1 insertion(+)
diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
index bbf939faf0..37659730d1 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
+++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
@@ -2197,6 +2197,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
Schedule scheduleObj = scheduleMapper.queryByProcessDefinitionCode(oldProcessDefinitionCode);
if (scheduleObj != null) {
scheduleObj.setId(null);
+ scheduleObj.setUserId(loginUser.getId());
scheduleObj.setProcessDefinitionCode(processDefinition.getCode());
scheduleObj.setReleaseState(ReleaseState.OFFLINE);
scheduleObj.setCreateTime(date);