|
|
|
@ -345,7 +345,7 @@ def pyOpenRPA_Agent_O2A(inRequest, inGSettings):
|
|
|
|
|
lReturnActivityItemDict = None
|
|
|
|
|
# If lInput['ActivityLastGUIDStr'] is '' > return 0 element for send in Agent
|
|
|
|
|
if lInput['ActivityLastGUIDStr'] == "":
|
|
|
|
|
lReturnActivityItemDict = lThisAgentDict["ActivityList"][0]
|
|
|
|
|
lReturnActivityItemList=lQueueList # 2022 02 21 - Maslov Return list - not one item
|
|
|
|
|
else:
|
|
|
|
|
# go from the end - search element with GUIDStr
|
|
|
|
|
lForTriggerGetNextItem = False
|
|
|
|
@ -356,9 +356,9 @@ def pyOpenRPA_Agent_O2A(inRequest, inGSettings):
|
|
|
|
|
#break
|
|
|
|
|
if lForActivityItemDict['GUIDStr'] == lInput['ActivityLastGUIDStr']: lForTriggerGetNextItem = True
|
|
|
|
|
# CASE if GUID is not detected - return 0 element
|
|
|
|
|
if lReturnActivityItemDict == None and lForTriggerGetNextItem == False:
|
|
|
|
|
lReturnActivityItemDict = lThisAgentDict["ActivityList"][0]
|
|
|
|
|
lReturnActivityItemList.append(lReturnActivityItemDict) # 2022 02 21 - Maslov Return list - not one item
|
|
|
|
|
if (len(lQueueList)==1 and lQueueList[0]['GUIDStr'] != lInput['ActivityLastGUIDStr']):
|
|
|
|
|
#lReturnActivityItemDict = lThisAgentDict["ActivityList"][0]
|
|
|
|
|
lReturnActivityItemList=lQueueList # 2022 02 21 - Maslov Return list - not one item
|
|
|
|
|
# Send QUEUE ITEM
|
|
|
|
|
if len(lReturnActivityItemList) > 0:
|
|
|
|
|
lReturnActivityItemList = copy.deepcopy(lReturnActivityItemList)
|
|
|
|
|