diff --git a/.vs/AACloud/v15/.suo b/.vs/AACloud/v15/.suo index 4417d86ae..8735a1b13 100644 Binary files a/.vs/AACloud/v15/.suo and b/.vs/AACloud/v15/.suo differ diff --git a/Context.js b/Context.js index 1fc66f01f..ec668e9e7 100644 --- a/Context.js +++ b/Context.js @@ -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) {