Browse Source

[Bug] [Parameter Context] The preparameter OUT is null (#8315)

* fix:param context prop value is null
3.0.0/version-upgrade
cheney 3 years ago committed by GitHub
parent
commit
703d790415
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 7
      dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/AbstractParameters.java

7
dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/AbstractParameters.java

@ -115,14 +115,17 @@ public abstract class AbstractParameters implements IParameters {
return; return;
} }
Map<String, String> taskResult = getMapByString(result); Map<String, String> taskResult = getMapByString(result);
if (taskResult == null || taskResult.size() == 0) { if (taskResult.size() == 0) {
return; return;
} }
for (Property info : outProperty) { for (Property info : outProperty) {
info.setValue(taskResult.get(info.getProp())); String propValue = taskResult.get(info.getProp());
if (StringUtils.isNotEmpty(propValue)) {
info.setValue(propValue);
varPool.add(info); varPool.add(info);
} }
} }
}
public List<Property> getOutProperty(List<Property> params) { public List<Property> getOutProperty(List<Property> params) {
if (CollectionUtils.isEmpty(params)) { if (CollectionUtils.isEmpty(params)) {

Loading…
Cancel
Save