Profile picture for user amcknight

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");

}

Featured achievement

Rookie
Say hello to the ARIS Community! Personalize your community experience by following forums or tags, liking a post or uploading a profile picture.
Recent Unlocks

Leaderboard

|
icon-arrow-down icon-arrow-cerulean-left icon-arrow-cerulean-right icon-arrow-down icon-arrow-left icon-arrow-right icon-arrow icon-back icon-close icon-comments icon-correct-answer icon-tick icon-download icon-facebook icon-flag icon-google-plus icon-hamburger icon-in icon-info icon-instagram icon-login-true icon-login icon-mail-notification icon-mail icon-mortarboard icon-newsletter icon-notification icon-pinterest icon-plus icon-rss icon-search icon-share icon-shield icon-snapchat icon-star icon-tutorials icon-twitter icon-universities icon-videos icon-views icon-whatsapp icon-xing icon-youtube icon-jobs icon-heart icon-heart2 aris-express bpm-glossary help-intro help-design Process_Mining_Icon help-publishing help-administration help-dashboarding help-archive help-risk icon-knowledge icon-question icon-events icon-message icon-more icon-pencil forum-icon icon-lock