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. 9
      dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/AbstractParameters.java

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

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

Loading…
Cancel
Save