|
17 | 17 |
|
18 | 18 | package org.apache.dolphinscheduler.service.expand; |
19 | 19 |
|
20 | | -import lombok.NonNull; |
| 20 | +import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_EXECUTE_PATH; |
| 21 | +import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_INSTANCE_ID; |
| 22 | + |
21 | 23 | import org.apache.dolphinscheduler.common.Constants; |
22 | 24 | import org.apache.dolphinscheduler.common.enums.CommandType; |
23 | 25 | import org.apache.dolphinscheduler.common.utils.DateUtils; |
|
31 | 33 | import org.apache.dolphinscheduler.plugin.task.api.parser.ParamUtils; |
32 | 34 | import org.apache.dolphinscheduler.plugin.task.api.utils.MapUtils; |
33 | 35 | import org.apache.dolphinscheduler.spi.utils.StringUtils; |
34 | | -import org.springframework.beans.factory.annotation.Autowired; |
35 | | -import org.springframework.stereotype.Component; |
36 | 36 |
|
37 | 37 | import java.util.Date; |
38 | 38 | import java.util.HashMap; |
|
42 | 42 | import java.util.Set; |
43 | 43 | import java.util.stream.Collectors; |
44 | 44 |
|
45 | | -import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_EXECUTE_PATH; |
46 | | -import static org.apache.dolphinscheduler.plugin.task.api.TaskConstants.PARAMETER_TASK_INSTANCE_ID; |
| 45 | +import org.springframework.beans.factory.annotation.Autowired; |
| 46 | +import org.springframework.stereotype.Component; |
| 47 | + |
| 48 | +import lombok.NonNull; |
47 | 49 |
|
48 | 50 | @Component |
49 | 51 | public class CuringGlobalParams implements CuringParamsService { |
@@ -139,6 +141,7 @@ public Map<String, Property> paramParsingPreparation(@NonNull TaskInstance taskI |
139 | 141 | Map<String, Property> localParams = parameters.getInputLocalParametersMap(); |
140 | 142 |
|
141 | 143 | //stream pass params |
| 144 | + parameters.setVarPool(taskInstance.getVarPool()); |
142 | 145 | Map<String, Property> varParams = parameters.getVarPoolMap(); |
143 | 146 |
|
144 | 147 | if (globalParams.isEmpty() && localParams.isEmpty() && varParams.isEmpty()) { |
|
0 commit comments