I am trying to read a log file and then write the data into workbook containing multiple worksheets on the basis of set of conditions. I addRow to sheet whenever I encounter a particular node's data. Nothing is written in final workbook. The problem might be of scoping but I am not able to debug it properly.
I tried adding rows to sheets outside lineReader function. It works correctly and data is written in workbook. However, I need to go through the conditions and that is where problem comes.