String mimeType = "application/pdf";
logger.debug("setting object to return of type SDKExecuteDocumentContent");
toReturn=new SDKExecutedDocumentContent();
// call exporter!
try{
KpiExporter exporter=new KpiExporter();
if(ouputType.equals("PDF")){
logger.debug("call PDF Exporter");
tmpFile=exporter.getKpiReportPDF(blocksList, biobj, userId);
toReturn.setFileName(biobj.getLabel()+".pdf");
}else if (ouputType.equals("XML")){
mimeType = "text/xml";
logger.debug("call XML Exporter");
tmpFile=exporter.getKpiExportXML(blocksList, biobj, userId);
toReturn.setFileName(biobj.getLabel()+".xml");
}
}
catch (Exception e) {
logger.error("error while exporting",e);