Status Report and Execution Finished Event Implementation part 1
This commit is contained in:
1 parent
64b238af43
commit
4f9c4bd403
11 files changed
+273
No files matched your search
@@ -7,6 +7,8 @@ function newUiObjectsFromNodes () {
|
||||
addIndicatorBot: addIndicatorBot,
|
||||
addTradingBot: addTradingBot,
|
||||
addProcessDefinition: addProcessDefinition,
|
||||
addStatusReport: addStatusReport,
|
||||
addExecutionFinishedEvent: addExecutionFinishedEvent,
|
||||
addCalculationsProcedure: addCalculationsProcedure,
|
||||
addDataBuildingProcedure: addDataBuildingProcedure,
|
||||
addProcedureInitialization: addProcedureInitialization,
|
||||
@@ -765,6 +767,14 @@ function newUiObjectsFromNodes () {
|
||||
}
|
||||
return
|
||||
}
|
||||
case 'Status Report': {
|
||||
createUiObject(node.type, node.name, node, parentNode, chainParent, node.type)
|
||||
return
|
||||
}
|
||||
case 'Execution Finished Event': {
|
||||
createUiObject(node.type, node.name, node, parentNode, chainParent, node.type)
|
||||
return
|
||||
}
|
||||
case 'Calculations Procedure': {
|
||||
createUiObject(node.type, node.name, node, parentNode, chainParent, node.type)
|
||||
if (node.initialization !== undefined) {
|
||||
@@ -995,6 +1005,28 @@ function newUiObjectsFromNodes () {
|
||||
return object
|
||||
}
|
||||
|
||||
function addStatusReport (node) {
|
||||
if (node.statusReport === undefined) {
|
||||
node.statusReport = {
|
||||
type: 'Status Report',
|
||||
name: 'New Status Report'
|
||||
}
|
||||
createUiObject(node.calculations.type, node.calculations.name, node.calculations, node, node)
|
||||
}
|
||||
return node.calculations
|
||||
}
|
||||
|
||||
function addExecutionFinishedEvent (node) {
|
||||
if (node.executionFinishedEvent === undefined) {
|
||||
node.executionFinishedEvent = {
|
||||
type: 'Execution Finished Event',
|
||||
name: 'New Execution Finished Event'
|
||||
}
|
||||
createUiObject(node.calculations.type, node.calculations.name, node.calculations, node, node)
|
||||
}
|
||||
return node.calculations
|
||||
}
|
||||
|
||||
function addCalculationsProcedure (node) {
|
||||
if (node.calculations === undefined) {
|
||||
node.calculations = {
|
||||
|
||||
Reference in new issue
Block a user