Attaching processes by subtype implemented

This commit is contained in:
Luis Fernando Molina committed 2019-10-02 12:20:45 +02:00
1 parent 255f8c90b0
commit 390fca2c10
1 file changed
+14 -1
+14 -1
View File
@@ -275,7 +275,20 @@ function newStrategyPart () {
compatibleSubType = undefined
break
case 'Process':
compatibleType = '->' + 'Sensor' + '->' + 'Indicator' + '->' + 'Trading Engine' + '->'
switch (thisObject.payload.node.subType) {
case 'Sensor Process': {
compatibleType = '->' + 'Sensor' + '->'
break
}
case 'Indicator Process': {
compatibleType = '->' + 'Indicator' + '->'
break
}
case 'Trading Engine Process': {
compatibleType = '->' + 'Trading Engine' + '->'
break
}
}
compatibleSubType = undefined
break
case 'Strategy':