InputType input = (InputType) i.next();
response.getDataInputs().getInput().add( EMFUtils.clone( input, f, true ) );
}
//output definitions
OutputDefinitionsType outputs = f.createOutputDefinitionsType();
response.setOutputDefinitions( outputs );
Map<String,Parameter<?>> outs = pf.getResultInfo(processName, null);
Map<String,ProcessParameterIO> ppios = new HashMap();
for ( String key : result.keySet() ) {
Parameter p = pf.getResultInfo(processName, null).get( key );
if ( p == null ) {
throw new WPSException( "No such output: " + key );
}
//find the ppio
ProcessParameterIO ppio = ProcessParameterIO.find( p, context );
if ( ppio == null ) {
throw new WPSException( "Unable to encode output: " + p.key );
}
ppios.put( p.key, ppio );
DocumentOutputDefinitionType output = f.createDocumentOutputDefinitionType();
outputs.getOutput().add( output );
output.setIdentifier( Ows11Util.code( p.key ) );
if ( ppio instanceof ComplexPPIO ) {
output.setMimeType( ((ComplexPPIO) ppio).getMimeType() );
}