Orc 2 Agent -> list

dev-linux
Ivan Maslov 3 years ago
parent 1cea34c8c8
commit 742c70b99c

@ -381,8 +381,7 @@ class Process():
lLogBool = False lLogBool = False
lActivityItemUserProcessList = __Orchestrator__.ProcessorActivityItemCreate(inDef="ProcessWOExeUpperUserListGet") lActivityItemUserProcessList = __Orchestrator__.ProcessorActivityItemCreate(inDef="ProcessWOExeUpperUserListGet")
#self.MuteWait() #self.MuteWait()
lMuteWorkBool = False self.mAgentMuteBool=True
if self.mAgentMuteBool==False: self.mAgentMuteBool=True; lMuteWorkBool=True
lGUIDStr = __Orchestrator__.AgentActivityItemAdd(inHostNameStr=self.mAgentHostNameStr,inUserStr=self.mAgentUserNameStr,inActivityItemDict=lActivityItemUserProcessList) lGUIDStr = __Orchestrator__.AgentActivityItemAdd(inHostNameStr=self.mAgentHostNameStr,inUserStr=self.mAgentUserNameStr,inActivityItemDict=lActivityItemUserProcessList)
lUserProcessList = __Orchestrator__.AgentActivityItemReturnGet(inGUIDStr=lGUIDStr) lUserProcessList = __Orchestrator__.AgentActivityItemReturnGet(inGUIDStr=lGUIDStr)
if self.mProcessNameWOExeStr.upper() in lUserProcessList: if self.mProcessNameWOExeStr.upper() in lUserProcessList:
@ -397,7 +396,7 @@ class Process():
if self.mStatusStr is None: self.mStatusStr = "0_STOPPED"; lLogBool=True if self.mStatusStr is None: self.mStatusStr = "0_STOPPED"; lLogBool=True
# Log info about process # Log info about process
if lLogBool == True: self.StatusChangeLog() if lLogBool == True: self.StatusChangeLog()
if lMuteWorkBool==True: self.mAgentMuteBool = False self.mAgentMuteBool = False
return self.mStatusStr return self.mStatusStr
def StatusCheckStart(self): def StatusCheckStart(self):
""" """

@ -345,7 +345,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 = lThisAgentDict["ActivityList"][0] lReturnActivityItemList=lQueueList # 2022 02 21 - Maslov Return list - not one item
else: else:
# go from the end - search element with GUIDStr # go from the end - search element with GUIDStr
lForTriggerGetNextItem = False lForTriggerGetNextItem = False
@ -356,9 +356,9 @@ def pyOpenRPA_Agent_O2A(inRequest, inGSettings):
#break #break
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 (len(lQueueList)==1 and lQueueList[0]['GUIDStr'] != lInput['ActivityLastGUIDStr']):
lReturnActivityItemDict = lThisAgentDict["ActivityList"][0] #lReturnActivityItemDict = lThisAgentDict["ActivityList"][0]
lReturnActivityItemList.append(lReturnActivityItemDict) # 2022 02 21 - Maslov Return list - not one item lReturnActivityItemList=lQueueList # 2022 02 21 - Maslov Return list - not one item
# Send QUEUE ITEM # Send QUEUE ITEM
if len(lReturnActivityItemList) > 0: if len(lReturnActivityItemList) > 0:
lReturnActivityItemList = copy.deepcopy(lReturnActivityItemList) lReturnActivityItemList = copy.deepcopy(lReturnActivityItemList)

Loading…
Cancel
Save