From fa906e7d01ac5e4222bc068bd1e908297cfd7b57 Mon Sep 17 00:00:00 2001 From: xiangzihao <460888207@qq.com> Date: Sat, 1 Jan 2022 15:23:50 +0800 Subject: [PATCH] [Fix-7753][Master] Failed to pass global parameters between parent and sub process (#7755) * fix bug_7753 * fix bug_7753 * fix bug_7753 Co-authored-by: SbloodyS --- .../dolphinscheduler/service/process/ProcessService.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java b/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java index 1bc796104c..a65f05b349 100644 --- a/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java +++ b/dolphinscheduler-service/src/main/java/org/apache/dolphinscheduler/service/process/ProcessService.java @@ -1062,7 +1062,8 @@ public class ProcessService { List parentPropertyList = JSONUtils.toList(parentGlobalParams, Property.class); List subPropertyList = JSONUtils.toList(subGlobalParams, Property.class); - + subPropertyList = new ArrayList<>(subPropertyList); + Map subMap = subPropertyList.stream().collect(Collectors.toMap(Property::getProp, Property::getValue)); for (Property parent : parentPropertyList) {