solutionEngine.execute( actionSeqPath, processId, false, true, instanceId, false, parameterProviders,
outputHandler, null, null, messages );
if ( listSource != null ) {
if ( context.getOutputNames().contains( listSource ) ) {
IActionParameter output = context.getOutputParameter( listSource );
IPentahoResultSet results = output.getValueAsResultSet();
if ( results != null ) {
results = results.memoryCopy();
}
return results;
} else {
// this is an error
return null;
}
} else {
// return the first list that we find...
Iterator it = context.getOutputNames().iterator();
while ( it.hasNext() ) {
IActionParameter output = (IActionParameter) it.next();
if ( output.getType().equalsIgnoreCase( IActionParameter.TYPE_RESULT_SET ) ) {
IPentahoResultSet results = output.getValueAsResultSet();
if ( results != null ) {
results = results.memoryCopy();
}
return results;
}