From 73cee5e46fbf300d2cdf9baaa6e225259affb0e7 Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Thu, 17 Dec 2020 21:03:46 +0300 Subject: [PATCH] def ProcessorActivityItemCreate(inDef, inArgList=None, inArgDict=None, inArgGSettingsStr=None, inArgLoggerStr=None): # Create ActivityItem # return dict def ProcessorAliasDefUpdate(inGSettings=inGSettings, inDef=inDef, inAliasStr=lDefAliasStr) # Create HTMLLink by the def, argdict, arglist, gsettingsStr, logger Str titleStr, color, (execute permanently) def HTMLLinkDefExecute(inGSettings, inDef, inArgDict=None, inArgList=None, inArgGSettingsStr="", inArgLoggerStr="", inLinkTitleStr=None, inLinkColorStr=""): # Create HTMLLink by the def, argdict, arglist, gsettingsStr, logger Str titleStr, color, (add in processor queue) def HTMLLinkDefProcessor(inGSettings, inDef, inArgDict=None, inArgList=None, inArgGSettingsStr="", inArgLoggerStr="", inLinkTitleStr=None, inLinkColorStr=""): --- Sources/pyOpenRPA/Orchestrator/Processor.py | 3 ++- Sources/pyOpenRPA/Orchestrator/Web/Basic.py | 22 +++++++++++++++++++ .../Orchestrator/__Orchestrator__.py | 21 ++++++++++++++++++ changelog.md | 9 +++++++- 4 files changed, 53 insertions(+), 2 deletions(-) diff --git a/Sources/pyOpenRPA/Orchestrator/Processor.py b/Sources/pyOpenRPA/Orchestrator/Processor.py index 78dd6e6e..d50420ed 100644 --- a/Sources/pyOpenRPA/Orchestrator/Processor.py +++ b/Sources/pyOpenRPA/Orchestrator/Processor.py @@ -25,7 +25,8 @@ def ProcessorRunSync(inGSettings): if lL: lL.debug(f'Processor ActivityList len: {len(lActivityList)}') lActivityItem = inGSettings["ProcessorDict"]["ActivityList"].pop(0) # Extract the first item from processor queue ActivityListExecute(inGSettings = inGSettings, inActivityList = [lActivityItem]) # execute the activity item - time.sleep(inGSettings["ProcessorDict"]["CheckIntervalSecFloat"]) # Sleep when list is empty + else: + time.sleep(inGSettings["ProcessorDict"]["CheckIntervalSecFloat"]) # Sleep when list is empty # Execute ActivityItem list # return the def result diff --git a/Sources/pyOpenRPA/Orchestrator/Web/Basic.py b/Sources/pyOpenRPA/Orchestrator/Web/Basic.py index 76161049..cbfd4cff 100644 --- a/Sources/pyOpenRPA/Orchestrator/Web/Basic.py +++ b/Sources/pyOpenRPA/Orchestrator/Web/Basic.py @@ -1,4 +1,5 @@ import json +from .. import __Orchestrator__ # Escape JS to the safe JS for the inline JS in HTML tags ATTENTION! Use it only if want to paste JS into HTML tag - not in