Status Report and Execution Finished Event Implementation part 1

This commit is contained in:
Luis Fernando Molina committed 2019-11-01 11:31:47 +01:00
1 parent 64b238af43
commit 4f9c4bd403
11 files changed
+273

No files matched your search

@@ -61,6 +61,16 @@ function newChainAttachDetach () {
completeDetachment(node, rootNodes)
return
}
case 'Status Report': {
node.payload.parentNode.calculations = undefined
completeDetachment(node, rootNodes)
return
}
case 'Execution Finished Event': {
node.payload.parentNode.calculations = undefined
completeDetachment(node, rootNodes)
return
}
case 'Calculations Procedure': {
node.payload.parentNode.calculations = undefined
completeDetachment(node, rootNodes)
@@ -557,6 +567,20 @@ function newChainAttachDetach () {
completeAttachment(node, rootNodes)
}
break
case 'Status Report': {
node.payload.parentNode = attachToNode
node.payload.chainParent = attachToNode
node.payload.parentNode.calculations = node
completeAttachment(node, rootNodes)
}
break
case 'Execution Finished Event': {
node.payload.parentNode = attachToNode
node.payload.chainParent = attachToNode
node.payload.parentNode.calculations = node
completeAttachment(node, rootNodes)
}
break
case 'Calculations Procedure': {
node.payload.parentNode = attachToNode
node.payload.chainParent = attachToNode