Backtests Tested and Running with events

This commit is contained in:
Luis Fernando Molina committed 2019-09-12 10:08:23 +02:00
1 parent 028ac61f0d
commit c14b03a25b
3 files changed
+4 -57

No files matched your search

@@ -22,6 +22,7 @@ function newTaskFunctions () {
let event = {
taskId: node.id,
taskName: node.name,
definition: JSON.stringify(functionLibraryProtocolNode.getProtocolNode(node, false, true, true)) // <- We need to do this workaround in order no to send unescaped charactars to the taskManager.
}
systemEventHandler.raiseEvent('Task Manager', 'Run Task', event)
@@ -29,7 +30,8 @@ function newTaskFunctions () {
function stopTask (node, functionLibraryProtocolNode) {
let event = {
taskId: node.id
taskId: node.id,
taskName: node.name
}
systemEventHandler.raiseEvent('Task Manager', 'Stop Task', event)