Copy XML output from Report Manager to Process Monitor

/* Attachment will be stored here temporarily */

Local string &URL_ID = "record://UP_FILE_TMP";

/* Set filename and include suffix of pdf */

&filename = &oRptDefn.ReportFileName ".pdf";

/*generate report & specify template, language, date and type */

&oRptDefn.ProcessReport("Template_1", "ENG", %Date, "PDF");

/* Copy report to log output for the current process */

&source_file = &oRptDefn.OutDestination "\RptInst\" &filename;

&dest_file = GetCwd() "\log_output\AE_APPENGINENAME_" RECORDS_AET.PROCESS_INSTANCE "\" &filename;

&return = PutAttachment(&URL_ID, &filename, &source_file);

&return = GetAttachment(&URL_ID, &filename, &dest_file);



Comments