Process Status Working

This commit is contained in:
Luis Fernando Molina committed 2020-03-20 13:46:41 +01:00
1 parent 8b9bd95fd9
commit f46cee4e55
4 files changed
+16 -6

No files matched your search

+4 -2
View File
@@ -964,6 +964,7 @@
logger.persist();
}
processStopped()
callBackFunction(global.DEFAULT_OK_RESPONSE);
return;
@@ -1076,11 +1077,12 @@
}
}
function processHeartBeat(processingDate, percentage) {
function processHeartBeat(processingDate, percentage, status) {
let event = {
seconds: (new Date()).getSeconds(),
processingDate: processingDate,
percentage: percentage
percentage: percentage,
status: status
}
global.SYSTEM_EVENT_HANDLER.raiseEvent(bot.processKey, 'Heartbeat', event)
}