|
@@ -17,7 +17,9 @@
|
|
|
|
|
|
package org.apache.dolphinscheduler.service.expand;
|
|
|
|
|
|
-import lombok.NonNull;
|
|
|
+import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_EXECUTE_PATH;
|
|
|
+import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_INSTANCE_ID;
|
|
|
+
|
|
|
import org.apache.dolphinscheduler.common.Constants;
|
|
|
import org.apache.dolphinscheduler.common.enums.CommandType;
|
|
|
import org.apache.dolphinscheduler.common.utils.DateUtils;
|
|
@@ -31,8 +33,6 @@ import org.apache.dolphinscheduler.plugin.task.api.parameters.AbstractParameters
|
|
|
import org.apache.dolphinscheduler.plugin.task.api.parser.ParamUtils;
|
|
|
import org.apache.dolphinscheduler.plugin.task.api.utils.MapUtils;
|
|
|
import org.apache.dolphinscheduler.spi.utils.StringUtils;
|
|
|
-import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.stereotype.Component;
|
|
|
|
|
|
import java.util.Date;
|
|
|
import java.util.HashMap;
|
|
@@ -42,8 +42,10 @@ import java.util.Map;
|
|
|
import java.util.Set;
|
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
-import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_EXECUTE_PATH;
|
|
|
-import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_INSTANCE_ID;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.stereotype.Component;
|
|
|
+
|
|
|
+import lombok.NonNull;
|
|
|
|
|
|
@Component
|
|
|
public class CuringGlobalParams implements CuringParamsService {
|
|
@@ -139,6 +141,7 @@ public class CuringGlobalParams implements CuringParamsService {
|
|
|
Map<String, Property> localParams = parameters.getInputLocalParametersMap();
|
|
|
|
|
|
//stream pass params
|
|
|
+ parameters.setVarPool(taskInstance.getVarPool());
|
|
|
Map<String, Property> varParams = parameters.getVarPoolMap();
|
|
|
|
|
|
if (globalParams.isEmpty() && localParams.isEmpty() && varParams.isEmpty()) {
|