Sequence File Added

This commit is contained in:
Luis Fernando Molina committed 2018-04-26 13:37:02 +02:00
1 parent 449ce20445
commit e43f52fda1
2 files changed
+21 -2

No files matched your search

Binary file not shown.
+21 -2
View File
@@ -575,8 +575,27 @@
logger.write("[INFO] saveThemAll -> writeExucutionHistory -> onFolderCreated -> onFileCreated -> Content written = " + fileContent);
}
writeStatusReport(callBack);
return;
/* Here we will write the file containing the max sequence number. */
fileContent = thisObject.statusReport.runIndex;
fileName = "Execution.History." + thisObject.statusReport.runType + "." + "Sequence" + ".json";
filePath = bot.filePathRoot + "/Output/" + bot.process;
cloudStorage.createTextFile(filePath, fileName, fileContent + '\n', onSequenceFileCreated);
function onSequenceFileCreated(err) {
if (FULL_LOG === true) { logger.write("[INFO] saveThemAll -> writeExucutionHistory -> onFolderCreated -> onFileCreated -> onSequenceFileCreated -> Entering function."); }
if (err.result !== global.DEFAULT_OK_RESPONSE.result) {
logger.write("[ERROR] saveThemAll -> writeExucutionHistory -> onFolderCreated -> onFileCreated -> onSequenceFileCreated -> err = " + err.message);
callBack(err);
return;
}
writeStatusReport(callBack);
return;
}
}
}
catch (err) {