Skip to content

Commit

Permalink
[Feature-10604] Task name in the copied and imported workflow without…
Browse files Browse the repository at this point in the history
… copy suffix (#10607)

* fix

* remove imported task suffix
  • Loading branch information
zhuxt2015 authored Jul 26, 2022
1 parent c7789bf commit 5ebd538
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1232,7 +1232,7 @@ protected boolean checkAndImport(User loginUser, long projectCode, Map<String, O
List<TaskDefinitionLog> taskDefinitionLogList = new ArrayList<>();
for (TaskDefinition taskDefinition : taskDefinitionList) {
TaskDefinitionLog taskDefinitionLog = new TaskDefinitionLog(taskDefinition);
taskDefinitionLog.setName(taskDefinitionLog.getName() + "_import_" + DateUtils.getCurrentTimeStamp());
taskDefinitionLog.setName(taskDefinitionLog.getName());
taskDefinitionLog.setProjectCode(projectCode);
taskDefinitionLog.setUserId(loginUser.getId());
taskDefinitionLog.setVersion(Constants.VERSION_FIRST);
Expand Down Expand Up @@ -1824,7 +1824,7 @@ protected void doBatchOperateProcessDefinition(User loginUser,
}
taskDefinitionLog.setProjectCode(targetProjectCode);
taskDefinitionLog.setVersion(0);
taskDefinitionLog.setName(taskDefinitionLog.getName() + "_copy_" + DateUtils.getCurrentTimeStamp());
taskDefinitionLog.setName(taskDefinitionLog.getName());
}
for (ProcessTaskRelationLog processTaskRelationLog : taskRelationList) {
if (processTaskRelationLog.getPreTaskCode() > 0) {
Expand Down

0 comments on commit 5ebd538

Please sign in to comment.