dev-linux
Ivan Maslov 4 years ago
parent 12cee1f36c
commit f16d662fc6

@ -370,7 +370,7 @@ def pyOpenRPA_Agent_O2A(inRequest, inGSettings):
lReturnActivityItemDict = None lReturnActivityItemDict = None
# If lInput['ActivityLastGUIDStr'] is '' > return 0 element for send in Agent # If lInput['ActivityLastGUIDStr'] is '' > return 0 element for send in Agent
if lInput['ActivityLastGUIDStr'] == "": if lInput['ActivityLastGUIDStr'] == "":
lReturnActivityItemDict = lActivityItem[0] lReturnActivityItemDict = lThisAgentDict["ActivityList"][0]
else: else:
# go from the end - search element with GUIDStr # go from the end - search element with GUIDStr
lForTriggerGetNextItem = False lForTriggerGetNextItem = False
@ -381,7 +381,7 @@ def pyOpenRPA_Agent_O2A(inRequest, inGSettings):
if lForActivityItemDict['GUIDStr'] == lInput['ActivityLastGUIDStr']: lForTriggerGetNextItem = True if lForActivityItemDict['GUIDStr'] == lInput['ActivityLastGUIDStr']: lForTriggerGetNextItem = True
# CASE if GUID is not detected - return 0 element # CASE if GUID is not detected - return 0 element
if lReturnActivityItemDict == None and lForTriggerGetNextItem == False: if lReturnActivityItemDict == None and lForTriggerGetNextItem == False:
lReturnActivityItemDict = lActivityItem[0] lReturnActivityItemDict = lThisAgentDict["ActivityList"][0]
# Send QUEUE ITEM # Send QUEUE ITEM
if lReturnActivityItemDict is not None: if lReturnActivityItemDict is not None:
lReturnActivityItemDict = copy.deepcopy(lReturnActivityItemDict) lReturnActivityItemDict = copy.deepcopy(lReturnActivityItemDict)

Loading…
Cancel
Save