Session Concept Introduced into Product Storage

This commit is contained in:
Luis Fernando Molina committed 2019-10-07 14:51:58 +02:00
1 parent 5264885ab8
commit e4323deb83
5 files changed
+96 -8

No files matched your search

@@ -10,8 +10,14 @@ function newTaskFunctions () {
function runTask (node, functionLibraryProtocolNode, callBackFunction) {
/* Check if it is possible to Run or not */
if (node.bot === undefined) { return }
if (node.bot.processes.length === 0) { return }
if (node.bot === undefined) {
callBackFunction(GLOBAL.DEFAULT_FAIL_RESPONSE)
return
}
if (node.bot.processes.length === 0) {
callBackFunction(GLOBAL.DEFAULT_FAIL_RESPONSE)
return
}
for (let i = 0; i < node.bot.processes.length; i++) {
let process = node.bot.processes[i]