Sending Schema on Session Run

This commit is contained in:
Luis Fernando Molina committed 2020-06-01 12:09:36 +02:00
1 parent 7292f6ed28
commit 04791fac8f
2 files changed
+2 -9

No files matched your search

@@ -73,6 +73,7 @@ function newSessionFunctions () {
/* Raise event to run the session */
let event = {
appSchema: JSON.stringify(APP_SCHEMA_ARRAY),
session: JSON.stringify(session),
tradingSystem: JSON.stringify(tradingSystem),
tradingEngine: JSON.stringify(tradingEngine),
+1 -9
View File
@@ -28,17 +28,9 @@ function newDashboard () {
APP_SCHEMA_ARRAY = getAppSchema()
for (let i = 0; i < APP_SCHEMA_ARRAY.length; i++) {
let nodeDefinition = APP_SCHEMA_ARRAY[i]
let key
if (nodeDefinition.nameSpace !== undefined) {
key = nodeDefinition.type + '@' + nodeDefinition.nameSpace
} else {
key = nodeDefinition.type
}
let key = nodeDefinition.type
APP_SCHEMA_MAP.set(key, nodeDefinition)
}
startCanvas()
}