currentResources = resetMap( sequenceResourceNames, allParams );
for ( Iterator it = sequenceOutputDefs.entrySet().iterator(); it.hasNext(); ) {
Map.Entry entry = (Map.Entry) it.next();
String outputName = (String) entry.getKey();
IActionParameter param = (IActionParameter) allParams.get( outputName );
if ( ( (IActionParameter) entry.getValue() ).isOutputParameter() ) {
if ( param == null ) {
currentOutputs.put( outputName, entry.getValue() );
} else {
currentOutputs.put( outputName, param );
}
}
}
return;
}
String key;
Object value;
for ( Iterator it = actionDefinition.getActionInputDefinitions().keySet().iterator(); it.hasNext(); ) {
key = (String) it.next();
value = allParams.get( actionDefinition.getMappedInputName( key ) );
if ( value == null ) {
value = actionDefinition.getActionInputDefinitions().get( key );
if ( !( (ActionParameter) value ).hasDefaultValue() ) {
value = null; // Only use if there is a default value;
}
}
if ( value != null ) {
currentInputs.put( key, value );
}
}
// currentOutputs.putAll(actionDefinition.getActionOutputDefinitions());
// only put output parameters
Map outParams = actionDefinition.getActionOutputDefinitions();
for ( Object outKey : outParams.keySet() ) {
ActionParameter param = (ActionParameter) outParams.get( outKey );
if ( param.isOutputParameter() ) {
currentOutputs.put( outKey, param );
}
}
// This enables the old behavior - It should eventually be removed