fix the OUT direct param could pass to the current script (#9463)
parent
8440baa5e8
commit
04d4e4e0c4
|
|
@ -84,6 +84,23 @@ public abstract class AbstractParameters implements IParameters {
|
|||
return localParametersMaps;
|
||||
}
|
||||
|
||||
/**
|
||||
* get input local parameters map if the param direct is IN
|
||||
* @return parameters map
|
||||
*/
|
||||
public Map<String, Property> getInputLocalParametersMap() {
|
||||
Map<String, Property> localParametersMaps = new LinkedHashMap<>();
|
||||
if (localParams != null) {
|
||||
|
||||
for (Property property : localParams) {
|
||||
if (property.getDirect().equals(Direct.IN)) {
|
||||
localParametersMaps.put(property.getProp(), property);
|
||||
}
|
||||
}
|
||||
}
|
||||
return localParametersMaps;
|
||||
}
|
||||
|
||||
/**
|
||||
* get varPool map
|
||||
*
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@ public class ParamUtils {
|
|||
Date scheduleTime = taskExecutionContext.getScheduleTime();
|
||||
|
||||
// combining local and global parameters
|
||||
Map<String, Property> localParams = parameters.getLocalParametersMap();
|
||||
Map<String, Property> localParams = parameters.getInputLocalParametersMap();
|
||||
|
||||
//stream pass params
|
||||
Map<String, Property> varParams = parameters.getVarPoolMap();
|
||||
|
|
|
|||
Loading…
Reference in New Issue