Globals Module finally migrated to multi project

This commit is contained in:
Luis Fernando Molina committed 2020-11-28 10:19:01 +01:00
1 parent 4b97755328
commit fbe3b19aef
12 files changed
+12 -29

No files matched your search

+1 -1
View File
@@ -35,7 +35,7 @@ exports.newLearningSession = function newLearningSession(bot, parentLogger) {
/* Listen to event to start or stop the session. */
bot.sessionKey = bot.processNode.session.name + '-' + bot.processNode.session.type + '-' + bot.processNode.session.id
global.SESSION_MAP.set(bot.sessionKey, bot.sessionKey)
TS.projects.superalgos.globals.taskVariables.SESSION_MAP.set(bot.sessionKey, bot.sessionKey)
global.EVENT_SERVER_CLIENT_MODULE.listenToEvent(bot.sessionKey, 'Learning Session Status', undefined, bot.sessionKey, undefined, onSessionStatus)
global.EVENT_SERVER_CLIENT_MODULE.listenToEvent(bot.sessionKey, 'Run Learning Session', undefined, bot.sessionKey, undefined, onSessionRun)