Files
Superalgos/Projects/Foundations/TS/Globals/TaskConstants.js
T

18 lines
708 B
JavaScript

exports.newFoundationsGlobalsTaskConstants = function () {
/*
This values are set only once with the information received from whoever
is starting the task.
*/
let thisObject = {
TASK_NODE: undefined,
NETWORK_NODE: undefined,
PROJECT_DEFINITION_NODE: undefined,
PROJECTS_SCHEMA: undefined,
EVENT_SERVER_CLIENT_MODULE_OBJECT: undefined, // This is an instance of the Event Server Client pointing to the localhost server
TASK_HEARTBEAT_INTERVAL_HANDLER: undefined,
MANAGED_TASKS: undefined,
MANAGED_SESSIONS_MAP: new Map() // Naming convention => Key: name-type-id, Value:PMCommunicationModule
}
return thisObject
}