Project Data Products

This commit is contained in:
Luis Fernando Molina committed 2020-11-23 16:07:14 +01:00
1 parent f136f9952f
commit f252811b34
4 files changed
+60 -9

No files matched your search

@@ -209,7 +209,7 @@ function newSuperalgosFunctionLibraryLearningSessionFunctions() {
return
}
let networkNode = taskManager.payload.parentNode.payload.parentNode.payload.parentNode.payload.parentNode.payload.parentNode
let networkNode = UI.projects.superalgos.utilities.meshes.findNodeInNodeMesh(taskManager, 'Network Node', undefined, true, false, true, false)
if (node.tradingSystemReference === undefined) {
node.payload.uiObject.setErrorMessage('Session needs a child Trading System Reference.')
@@ -249,7 +249,8 @@ function newSuperalgosFunctionLibraryTaskFunctions() {
return
}
let networkNode = taskManager.payload.parentNode.payload.parentNode.payload.parentNode.payload.parentNode.payload.parentNode
let networkNode = UI.projects.superalgos.utilities.meshes.findNodeInNodeMesh(taskManager, 'Network Node', undefined, true, false, true, false)
if (UI.projects.superalgos.utilities.nodeConfig.loadPropertyFromNodeConfig(networkNode.payload, 'host') === undefined) {
node.payload.uiObject.setErrorMessage('Network Node needs to have a valid Host property at its config.')
return
@@ -209,7 +209,7 @@ function newSuperalgosFunctionLibraryTradingSessionFunctions() {
return
}
let networkNode = taskManager.payload.parentNode.payload.parentNode.payload.parentNode.payload.parentNode.payload.parentNode
let networkNode = UI.projects.superalgos.utilities.meshes.findNodeInNodeMesh(taskManager, 'Network Node', undefined, true, false, true, false)
if (node.tradingSystemReference === undefined) {
node.payload.uiObject.setErrorMessage('Session needs a child Trading System Reference.')
+56 -6
View File
@@ -16562,7 +16562,7 @@
"compatibleTypes": "->Crypto Exchange->"
},
"chainAttachesTo": {
"compatibleTypes": "->Data Mines Data->"
"compatibleTypes": "->Project Data Products->"
},
"propertyNameAtParent": "exchangeDataProducts",
"properties": [
@@ -16575,6 +16575,48 @@
},
{
"type": "Data Mines Data",
"menuItems": [
{
"action": "Add UI Object",
"label": "Add Project Data Products",
"relatedUiObject": "Project Data Products",
"actionFunction": "payload.executeAction"
},
{
"action": "Add Missing Project Data Products",
"label": "Add Missing Projects",
"askConfirmation": true,
"confirmationLabel": "Confirm to Proceed",
"workDoneLabel": "Done",
"relatedUiObject": "Project Data Products",
"actionFunction": "payload.executeAction"
},
{
"action": "Delete UI Object",
"askConfirmation": true,
"confirmationLabel": "Confirm to Delete",
"label": "Delete",
"iconPathOn": "delete",
"iconPathOff": "delete",
"actionFunction": "payload.executeAction"
}
],
"addLeftIcons": true,
"level": 3,
"chainAttachesTo": {
"compatibleTypes": "->Data Storage->"
},
"propertyNameAtParent": "dataMinesData",
"properties": [
{
"name": "projectDataProducts",
"type": "array",
"childType": "Project Data Products"
}
]
},
{
"type": "Project Data Products",
"menuItems": [
{
"action": "Add UI Object",
@@ -16601,19 +16643,27 @@
"actionFunction": "payload.executeAction"
}
],
"title": [
"Use Reference Parent"
],
"alternativeIcons": "Use Reference Parent Parent",
"addLeftIcons": true,
"level": 3,
"chainAttachesTo": {
"compatibleTypes": "->Data Storage->"
"level": 2,
"referenceAttachesTo": {
"compatibleTypes": "->Project Definition->"
},
"propertyNameAtParent": "dataMinesData",
"chainAttachesTo": {
"compatibleTypes": "->Data Mines Data->Trading Mines Data->Learning Mines Data->"
},
"propertyNameAtParent": "projectDataProducts",
"properties": [
{
"name": "exchangeDataProducts",
"type": "array",
"childType": "Exchange Data Products"
}
]
],
"icon":"bitcoin"
},
{
"type": "Exchange Trading Products",