Session Running and Stopping from menu and at task server
This commit is contained in:
1 parent
a876a15e42
commit
ca576af89d
4 files changed
+37
-10
No files matched your search
@@ -9,12 +9,14 @@ function newSessionFunctions () {
|
||||
function runSession (node, functionLibraryProtocolNode, callBackFunction) {
|
||||
node.payload.uiObject.run(callBackFunction)
|
||||
|
||||
let key = node.name + '-' + node.type + '-' + node.id
|
||||
|
||||
/* Raise event to run the session */
|
||||
let event = {
|
||||
session: JSON.stringify(functionLibraryProtocolNode.getProtocolNode(node, false, false, true)),
|
||||
definition: getDefinition()
|
||||
}
|
||||
|
||||
let key = 'Session' + '-' + node.id + '-' + 'Events'
|
||||
systemEventHandler.raiseEvent(key, 'Run Session', event)
|
||||
|
||||
function getDefinition () {
|
||||
@@ -25,7 +27,7 @@ function newSessionFunctions () {
|
||||
}
|
||||
|
||||
function stopSession (node, functionLibraryProtocolNode, callBackFunction) {
|
||||
let key = 'Session' + '-' + node.id + '-' + 'Events'
|
||||
let key = node.name + '-' + node.type + '-' + node.id
|
||||
systemEventHandler.raiseEvent(key, 'Stop Session')
|
||||
|
||||
node.payload.uiObject.stop(callBackFunction)
|
||||
|
||||
Reference in new issue
Block a user