Anyone have any simple logging & debugging helpers code to drop in at the end of a script in ARIS? I thought this would work, but does seem to do the trick.

/*Function to Initialize the Output Log File*/

function Init_Log_File()

{

    //Creates name and output file for output log

    outFileName = Context.getSelectedFile();

    workbook = Context.createExcelWorkbook(outFileName);

   

    //Create the Font Styles

    Header_font = workbook.createFont();

    Header_font.setFontHeight(240);

    Header_style = workbook.createCellStyle(Header_font, Constants.BORDER_THIN,Constants.BORDER_THIN,Constants.BORDER_THIN,Constants.BORDER_THIN, 0, 0, 0, 0, Constants.ALIGN_LEFT,  Constants.ALIGN_LEFT, Constants.C_GREY_50_PERCENT, Constants.C_GREY_50_PERCENT, Constants.SOLID_FOREGROUND, Constants.XL_CELL_DATAFORMAT_GENERAL, false, 0 , false, 0 , true);

   

    Data_font = workbook.createFont();

    Data_font.setFontHeight(200);

    Data_style = workbook.createCellStyle(Data_font, Constants.BORDER_THIN,Constants.BORDER_THIN,Constants.BORDER_THIN,Constants.BORDER_THIN, 0, 0, 0, 0, Constants.ALIGN_CENTER,  Constants.ALIGN_LEFT, 0, 0, Constants.NO_FILL, Constants.XL_CELL_DATAFORMAT_GENERAL, false, 0 , false, 0 , true);

    //Starts a new worksheet

    Log_sheet = workbook.createSheet("Output Log");

}

 or register to reply.

Notify Moderator