config.put("WORKFLOW_ID", req.getJobId());
config.put("WORKFLOW_ID", wkflId);
config.put("WORKING_DIRECTORY", jobInfo.getWorkingDirectory()); //TODO: this is wrong
JDOMSerializer paramSerializer = serializers
.getWorkflowSerializerSet(wkflManager)
.getOutputParameterSerializer(jobIndex, taskId, config);
//serialize:
Map outputs = wkflManager.getWorkflowOutputs(wkflId, jobIndex);
Element elem = new Element("outputs");
paramSerializer.write(outputs, elem);
return xmlUtil.writeXML(elem);
}
catch (UnknownJobException e) {
logger.warn("Unknown job in JobManagerService.getJobOutputs(): " + e.getJobId());
return xmlUtil.writeFault(e);