Multiple bug fixes and improvements
This commit is contained in:
1 parent
c9037dff2a
commit
0df0857ec9
7 files changed
+72
-29
No files matched your search
@@ -41,6 +41,7 @@
|
||||
function initialize(pOwner, pMonth, pYear, callBackFunction) {
|
||||
|
||||
try {
|
||||
if (global.LOG_CONTROL[MODULE_NAME].logInfo === true) { logger.write(MODULE_NAME, "[INFO] initialize -> Entering function."); }
|
||||
|
||||
logger.fileName = MODULE_NAME + "." + pOwner.bot + "." + pOwner.process;
|
||||
|
||||
@@ -56,6 +57,9 @@
|
||||
}
|
||||
|
||||
if (owner.waitUntilNextUpdate === true) {
|
||||
|
||||
if (global.LOG_CONTROL[MODULE_NAME].logInfo === true) { logger.write(MODULE_NAME, "[INFO] initialize -> waitUntilNextUpdate -> Entering Code Block."); }
|
||||
|
||||
/* This forces this process to wait until the process that this one depends on, updates its status report. */
|
||||
|
||||
let extraCallerId = ''
|
||||
@@ -71,6 +75,7 @@
|
||||
|
||||
function responseCallBack(message) {
|
||||
if (message.result !== global.DEFAULT_OK_RESPONSE.result) {
|
||||
logger.write(MODULE_NAME, "[ERROR] initialize -> responseCallBack -> message = " + JSON.stringify(message))
|
||||
callBackFunction(global.DEFAULT_FAIL_RESPONSE);
|
||||
} else {
|
||||
subscriptionIdStatusReport = message.eventSubscriptionId
|
||||
@@ -78,6 +83,8 @@
|
||||
}
|
||||
|
||||
function eventsCallBack() {
|
||||
if (global.LOG_CONTROL[MODULE_NAME].logInfo === true) { logger.write(MODULE_NAME, "[INFO] initialize -> eventsCallBack -> Entering function."); }
|
||||
|
||||
/* We continue the normal flow after we learn the dependent process has updated its status report. */
|
||||
global.SYSTEM_EVENT_HANDLER.stopListening(key, 'Status Report Updated', subscriptionIdStatusReport)
|
||||
callBackFunction(global.DEFAULT_OK_RESPONSE);
|
||||
|
||||
Reference in new issue
Block a user