@ -41,13 +41,13 @@ gSettingsDict = None
def AgentActivityItemAdd ( inHostNameStr , inUserStr , inActivityItemDict , inGSettings = None ) :
def AgentActivityItemAdd ( inHostNameStr , inUserStr , inActivityItemDict , inGSettings = None ) :
"""
"""
Add activity in AgentDict . Check if item is created
Добавить активность в словарь активностей выбранного Агента
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inHostNameStr : Agent host name
: param inHostNameStr : Наименование хоста , на котором запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inUserStr : User login , where agent is based
: param inUserStr : Наименование пользователя , на графической сессии которого запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inActivityItemDict : ActivityItem
: param inActivityItemDict : Активность ( ActivityItem) . См . функцию ProcessorActivityitemCreate
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
: return : ГУИД ( GUID ) строка Активности ( ActivityItem ) . Далее можно ожидать результат этой функции по ГУИД с помощью функции AgentActivityItemReturnGet
"""
"""
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
@ -72,11 +72,11 @@ def AgentActivityItemAdd(inHostNameStr, inUserStr, inActivityItemDict, inGSettin
def AgentActivityItemExists ( inHostNameStr , inUserStr , inGUIDStr , inGSettings = None ) :
def AgentActivityItemExists ( inHostNameStr , inUserStr , inGUIDStr , inGSettings = None ) :
"""
"""
Check by GUID if ActivityItem has exists in request list . If exist - the result response has not been recieved from the agent
Выполнить проверку , что активность ( ActivityItem ) была отправлена на сторону Агента .
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inGUIDStr : GUID String of the ActivityItem
: param inGUIDStr : ГУИД ( GUID ) активности ( ActivityItem )
: return : True - ActivityItem is exist in AgentDict ; False - else case
: return : True - Активность присутствует ; False - Активность еще не была отправлена на сторону Агента
"""
"""
# Check if GUID is exists in dict - has been recieved
# Check if GUID is exists in dict - has been recieved
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
@ -92,11 +92,11 @@ def AgentActivityItemExists(inHostNameStr, inUserStr, inGUIDStr, inGSettings = N
def AgentActivityItemReturnExists ( inGUIDStr , inGSettings = None ) :
def AgentActivityItemReturnExists ( inGUIDStr , inGSettings = None ) :
"""
"""
Check by GUID if ActivityItem has been executed and result has come to the Orchestrator
Выполнить проверку , что активность ( ActivityItem ) была выполнена на стороне Агента и результат был получен на стороне Оркестратора .
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inGUIDStr : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
: param inGUIDStr : ГУИД ( GUID ) активности ( ActivityItem )
: return : True - result has been received from the Agent to orc ; False - else case
: return : True - Активность присутствует ; False - Активность еще не была выполнена на стороне Агента
"""
"""
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
@ -110,8 +110,8 @@ def AgentActivityItemReturnGet(inGUIDStr, inCheckIntervalSecFloat = 0.5, inGSett
! ATTENTION ! Use only after Orchestrator initialization ! Before orchestrator init exception will be raised .
! ATTENTION ! Use only after Orchestrator initialization ! Before orchestrator init exception will be raised .
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inGUIDStr : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
: param inGUIDStr : ГУИД ( GUID ) активности ( ActivityItem )
: param inCheckIntervalSecFloat : Interval in sec of the check Activity Item result
: param inCheckIntervalSecFloat : Interval in sec of the check Activity Item result
: return : Result of the ActivityItem executed on the Agent side anr transmitted to the Orchestrator . IMPORTANT ! ONLY JSON ENABLED Types CAN BE TRANSMITTED TO ORCHESTRATOR !
: return : Result of the ActivityItem executed on the Agent side anr transmitted to the Orchestrator . IMPORTANT ! ONLY JSON ENABLED Types CAN BE TRANSMITTED TO ORCHESTRATOR !
"""
"""
@ -130,9 +130,9 @@ def AgentOSCMD(inHostNameStr, inUserStr, inCMDStr, inRunAsyncBool=True, inSendOu
"""
"""
Send CMD to OS thought the pyOpenRPA . Agent daemon . Result return to log + Orchestrator by the A2O connection
Send CMD to OS thought the pyOpenRPA . Agent daemon . Result return to log + Orchestrator by the A2O connection
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inHostNameStr : Agent host name in upper case ( example " RPA01 " , " RPA_99 " and so on ) . Active agent session you can see on the orchestrator dashboard as Orchestrator admin
: param inHostNameStr : Наименование хоста , на котором запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inUserStr : Agent user name in upper case ( example " UserRPA " ) . Active agent session you can see on the orchestrator dashboard as Orchestrator admin
: param inUserStr : Наименование пользователя , на графической сессии которого запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inCMDStr : command to execute on the Agent session
: param inCMDStr : command to execute on the Agent session
: param inRunAsyncBool : True - Agent processor don ' t wait execution; False - Agent processor wait cmd execution
: param inRunAsyncBool : True - Agent processor don ' t wait execution; False - Agent processor wait cmd execution
: param inSendOutputToOrchestratorLogsBool : True - catch cmd execution output and send it to the Orchestrator logs ; Flase - else case ; Default True
: param inSendOutputToOrchestratorLogsBool : True - catch cmd execution output and send it to the Orchestrator logs ; Flase - else case ; Default True
@ -175,9 +175,9 @@ def AgentOSFileSend(inHostNameStr, inUserStr, inOrchestratorFilePathStr, inAgent
Work safety with big files
Work safety with big files
Thread safe - you can call def even if you dont init the orchestrator - def will be executed later
Thread safe - you can call def even if you dont init the orchestrator - def will be executed later
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inHostNameStr :
: param inHostNameStr : Наименование хоста , на котором запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inUserStr :
: param inUserStr : Наименование пользователя , на графической сессии которого запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inFilePathStr :
: param inFilePathStr :
: param inFileDataBytes :
: param inFileDataBytes :
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
@ -239,9 +239,9 @@ def AgentOSFileBinaryDataBytesCreate(inHostNameStr, inUserStr, inFilePathStr, in
"""
"""
Create binary file by the base64 string by the pyOpenRPA . Agent daemon process ( safe for JSON transmition )
Create binary file by the base64 string by the pyOpenRPA . Agent daemon process ( safe for JSON transmition )
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inHostNameStr :
: param inHostNameStr : Наименование хоста , на котором запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inUserStr :
: param inUserStr : Наименование пользователя , на графической сессии которого запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inFilePathStr :
: param inFilePathStr :
: param inFileDataBytes :
: param inFileDataBytes :
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
@ -263,9 +263,9 @@ def AgentOSFileBinaryDataBase64StrCreate(inHostNameStr, inUserStr, inFilePathStr
"""
"""
Create binary file by the base64 string by the pyOpenRPA . Agent daemon process ( safe for JSON transmission )
Create binary file by the base64 string by the pyOpenRPA . Agent daemon process ( safe for JSON transmission )
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inHostNameStr :
: param inHostNameStr : Наименование хоста , на котором запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inUserStr :
: param inUserStr : Наименование пользователя , на графической сессии которого запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inFilePathStr :
: param inFilePathStr :
: param inFileDataBase64Str :
: param inFileDataBase64Str :
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
@ -286,9 +286,9 @@ def AgentOSFileBinaryDataBase64StrAppend(inHostNameStr, inUserStr, inFilePathStr
"""
"""
Append binary file by the base64 string by the pyOpenRPA . Agent daemon process ( safe for JSON transmission )
Append binary file by the base64 string by the pyOpenRPA . Agent daemon process ( safe for JSON transmission )
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inHostNameStr :
: param inHostNameStr : Наименование хоста , на котором запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inUserStr :
: param inUserStr : Наименование пользователя , на графической сессии которого запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inFilePathStr :
: param inFilePathStr :
: param inFileDataBase64Str :
: param inFileDataBase64Str :
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
@ -310,9 +310,9 @@ def AgentOSFileTextDataStrCreate(inHostNameStr, inUserStr, inFilePathStr, inFile
"""
"""
Create text file by the string by the pyOpenRPA . Agent daemon process
Create text file by the string by the pyOpenRPA . Agent daemon process
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inHostNameStr :
: param inHostNameStr : Наименование хоста , на котором запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inUserStr :
: param inUserStr : Наименование пользователя , на графической сессии которого запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inFilePathStr :
: param inFilePathStr :
: param inFileDataStr :
: param inFileDataStr :
: param inEncodingStr :
: param inEncodingStr :
@ -333,9 +333,9 @@ def AgentOSFileBinaryDataBase64StrReceive(inHostNameStr, inUserStr, inFilePathSt
"""
"""
Read binary file and encode in base64 to transmit ( safe for JSON transmition )
Read binary file and encode in base64 to transmit ( safe for JSON transmition )
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inHostNameStr :
: param inHostNameStr : Наименование хоста , на котором запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inUserStr :
: param inUserStr : Наименование пользователя , на графической сессии которого запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inFilePathStr : File path to read
: param inFilePathStr : File path to read
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
"""
"""
@ -355,9 +355,9 @@ def AgentOSFileBinaryDataReceive(inHostNameStr, inUserStr, inFilePathStr):
"""
"""
Read binary file from agent ( synchronious )
Read binary file from agent ( synchronious )
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inHostNameStr :
: param inHostNameStr : Наименование хоста , на котором запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inUserStr :
: param inUserStr : Наименование пользователя , на графической сессии которого запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inFilePathStr : File path to read
: param inFilePathStr : File path to read
: return : file data bytes
: return : file data bytes
"""
"""
@ -393,9 +393,9 @@ def AgentOSFileTextDataStrReceive(inHostNameStr, inUserStr, inFilePathStr, inEnc
"""
"""
Read text file in the agent GUI session
Read text file in the agent GUI session
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inHostNameStr :
: param inHostNameStr : Наименование хоста , на котором запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inUserStr :
: param inUserStr : Наименование пользователя , на графической сессии которого запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inFilePathStr : File path to read
: param inFilePathStr : File path to read
: param inEncodingStr : Text file encoding . Default ' utf-8 '
: param inEncodingStr : Text file encoding . Default ' utf-8 '
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
@ -415,9 +415,9 @@ def AgentProcessWOExeUpperUserListGet(inHostNameStr, inUserStr, inGSettings = No
"""
"""
Return the process list only for the current user ( where Agent is running ) without . EXE in upper case . Can use in ActivityItem from Orchestrator to Agent
Return the process list only for the current user ( where Agent is running ) without . EXE in upper case . Can use in ActivityItem from Orchestrator to Agent
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inHostNameStr :
: param inHostNameStr : Наименование хоста , на котором запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: param inUserStr :
: param inUserStr : Наименование пользователя , на графической сессии которого запущен Агент . Наименования подключенных агентов доступно для просмотра в панели управления
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
: return : GUID String of the ActivityItem - you can wait ( sync or async ) result by this guid !
"""
"""
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
@ -442,11 +442,11 @@ def OSLogoff():
def OSCredentialsVerify ( inUserStr , inPasswordStr , inDomainStr = " " ) : ##
def OSCredentialsVerify ( inUserStr , inPasswordStr , inDomainStr = " " ) : ##
"""
"""
Verify user credentials in windows . Return bool
Выполнить верификацию доменного ( локального ) пользователя по паре логин / пароль
: param inUserStr :
: param inUserStr : Наименование пользователя
: param inPasswordStr :
: param inPasswordStr : Пароль
: param inDomainStr :
: param inDomainStr : Домен . Если домена нет - не указывать или " "
: return : True - Credentials are actual ; False - Credentials are not actual
: return : True - Credentials are actual ; False - Credentials are not actual
"""
"""
try :
try :
@ -523,7 +523,7 @@ def OrchestratorRestart(inGSettings=None):
"""
"""
Orchestrator restart
Orchestrator restart
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
"""
"""
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
OrchestratorSessionSave ( inGSettings = inGSettings ) # Dump RDP List in file json
OrchestratorSessionSave ( inGSettings = inGSettings ) # Dump RDP List in file json
@ -737,7 +737,7 @@ def OrchestratorSessionRestore(inGSettings=None):
_SessionLast_RDPList . json ( encoding = " utf-8 " )
_SessionLast_RDPList . json ( encoding = " utf-8 " )
_SessionLast_StorageDict . pickle ( binary )
_SessionLast_StorageDict . pickle ( binary )
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: return :
: return :
"""
"""
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
@ -796,7 +796,7 @@ def UACUpdate(inADLoginStr, inADStr="", inADIsDefaultBool=True, inURLList=None,
"""
"""
Update user access ( UAC )
Update user access ( UAC )
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inADLoginStr :
: param inADLoginStr :
: param inADStr :
: param inADStr :
: param inADIsDefaultBool :
: param inADIsDefaultBool :
@ -832,7 +832,7 @@ def UACSuperTokenUpdate(inSuperTokenStr, inGSettings=None):
"""
"""
Add supertoken for the all access ( it is need for the robot communication without human )
Add supertoken for the all access ( it is need for the robot communication without human )
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inSuperTokenStr :
: param inSuperTokenStr :
"""
"""
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
@ -863,7 +863,7 @@ def WebURLConnectDef(inMethodStr, inURLStr, inMatchTypeStr, inDef, inContentType
" inContentTypeStr " : " " , #HTTP Content-type
" inContentTypeStr " : " " , #HTTP Content-type
" inDef " : None #Function with str result
" inDef " : None #Function with str result
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inMethodStr : " GET|POST " ,
: param inMethodStr : " GET|POST " ,
: param inURLStr : example " /index " , #URL of the request
: param inURLStr : example " /index " , #URL of the request
: param inMatchTypeStr : #"BeginWith|Contains|Equal|EqualCase",
: param inMatchTypeStr : #"BeginWith|Contains|Equal|EqualCase",
@ -895,7 +895,7 @@ def WebURLConnectFolder(inMethodStr, inURLStr, inMatchTypeStr, inFolderPathStr,
" inFolderPathStr " : " " , #Absolute or relative path
" inFolderPathStr " : " " , #Absolute or relative path
" inUACBool "
" inUACBool "
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inMethodStr :
: param inMethodStr :
: param inURLStr :
: param inURLStr :
: param inMatchTypeStr :
: param inMatchTypeStr :
@ -930,7 +930,7 @@ def WebURLConnectFile(inMethodStr, inURLStr, inMatchTypeStr, inFilePathStr, inCo
" inMatchTypeStr " : " " , #"BeginWith|Contains|Equal|EqualCase",
" inMatchTypeStr " : " " , #"BeginWith|Contains|Equal|EqualCase",
" inFolderPathStr " : " " , #Absolute or relative path
" inFolderPathStr " : " " , #Absolute or relative path
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inMethodStr :
: param inMethodStr :
: param inURLStr :
: param inURLStr :
: param inMatchTypeStr :
: param inMatchTypeStr :
@ -957,7 +957,7 @@ def WebListenCreate(inServerKeyStr="Default", inAddressStr="", inPortInt=80, inC
"""
"""
Create listen interface for the web server
Create listen interface for the web server
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inAddressStr : IP interface to listen
: param inAddressStr : IP interface to listen
: param inPortInt : Port int to listen for HTTP default is 80 ; for HTTPS default is 443
: param inPortInt : Port int to listen for HTTP default is 80 ; for HTTPS default is 443
: param inCertFilePEMPathStr : Path to . pem ( base 64 ) certificate . Required for SSL connection . ATTENTION - do not use certificate with password
: param inCertFilePEMPathStr : Path to . pem ( base 64 ) certificate . Required for SSL connection . ATTENTION - do not use certificate with password
@ -978,7 +978,7 @@ def WebCPUpdate(inCPKeyStr, inHTMLRenderDef=None, inJSONGeneratorDef=None, inJSI
"""
"""
Add control panel HTML , JSON generator or JS when page init
Add control panel HTML , JSON generator or JS when page init
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inCPKeyStr :
: param inCPKeyStr :
: param inHTMLRenderDef :
: param inHTMLRenderDef :
: param inJSONGeneratorDef :
: param inJSONGeneratorDef :
@ -1142,7 +1142,7 @@ def WebUserIsSuperToken(inRequest = None, inGSettings = None):
Return bool if request is authentificated with supetoken ( token which is never expires )
Return bool if request is authentificated with supetoken ( token which is never expires )
: param inRequest : inRequest from the server . Optional if call def from request thread
: param inRequest : inRequest from the server . Optional if call def from request thread
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: return : bool True - is supertoken ; False - is not supertoken
: return : bool True - is supertoken ; False - is not supertoken
"""
"""
if inRequest is None : inRequest = WebRequestGet ( )
if inRequest is None : inRequest = WebRequestGet ( )
@ -1179,7 +1179,7 @@ def GSettingsGet(inGSettings=None):
"""
"""
Get the GSettings from the singleton module .
Get the GSettings from the singleton module .
: param inGSettings : You can pass some GSettings to check if it equal to base gsettings . If not equal - def will merge it
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: return : GSettings
: return : GSettings
"""
"""
global GSettings # identify the global variable
global GSettings # identify the global variable
@ -1192,7 +1192,7 @@ def GSettingsKeyListValueSet(inValue, inKeyList=None, inGSettings = None):
"""
"""
Set value in GSettings by the key list
Set value in GSettings by the key list
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inValue :
: param inValue :
: param inKeyList :
: param inKeyList :
: return : bool
: return : bool
@ -1214,7 +1214,7 @@ def GSettingsKeyListValueGet(inKeyList=None, inGSettings = None):
"""
"""
Get the value from the GSettings by the key list
Get the value from the GSettings by the key list
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inKeyList :
: param inKeyList :
: return : value any type
: return : value any type
"""
"""
@ -1252,7 +1252,7 @@ def GSettingsKeyListValueAppend(inValue, inKeyList=None, inGSettings = None):
# }
# }
#}
#}
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inValue : Any value to be appended in gSettings Dict by the key list
: param inValue : Any value to be appended in gSettings Dict by the key list
: param inKeyList : List of the nested keys ( see example )
: param inKeyList : List of the nested keys ( see example )
: return : True every time
: return : True every time
@ -1295,7 +1295,7 @@ def GSettingsKeyListValueOperatorPlus(inValue, inKeyList=None, inGSettings = Non
# }
# }
#}
#}
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inValue : List with values to be merged with list in gSettings
: param inValue : List with values to be merged with list in gSettings
: param inKeyList : List of the nested keys ( see example )
: param inKeyList : List of the nested keys ( see example )
: return : True every time
: return : True every time
@ -1352,7 +1352,7 @@ def ProcessorAliasDefCreate(inDef, inAliasStr=None, inGSettings = None):
inAliasStr = " TestDefAlias " )
inAliasStr = " TestDefAlias " )
# Now you can call TestDef by the alias from var lAliasStr with help of ActivityItem (key Def = lAliasStr)
# Now you can call TestDef by the alias from var lAliasStr with help of ActivityItem (key Def = lAliasStr)
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inDef : Def
: param inDef : Def
: param inAliasStr : String alias for associated def
: param inAliasStr : String alias for associated def
: return : str Alias string ( Alias can be regenerated if previous alias was occupied )
: return : str Alias string ( Alias can be regenerated if previous alias was occupied )
@ -1378,7 +1378,7 @@ def ProcessorAliasDefUpdate(inDef, inAliasStr, inGSettings = None):
inAliasStr = " TestDefAlias " )
inAliasStr = " TestDefAlias " )
# Now you can call TestDef by the alias "TestDefAlias" with help of ActivityItem (key Def = "TestDefAlias")
# Now you can call TestDef by the alias "TestDefAlias" with help of ActivityItem (key Def = "TestDefAlias")
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inDef : Def
: param inDef : Def
: param inAliasStr : String alias for associated def
: param inAliasStr : String alias for associated def
: return : str Alias string
: return : str Alias string
@ -1528,7 +1528,7 @@ def ActivityItemDefAliasCreate(inDef, inAliasStr=None, inGSettings = None):
inAliasStr = " TestDefAlias " )
inAliasStr = " TestDefAlias " )
# Now you can call TestDef by the alias from var lAliasStr with help of ActivityItem (key Def = lAliasStr)
# Now you can call TestDef by the alias from var lAliasStr with help of ActivityItem (key Def = lAliasStr)
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inDef : Def
: param inDef : Def
: param inAliasStr : String alias for associated def
: param inAliasStr : String alias for associated def
: return : str Alias string ( Alias can be regenerated if previous alias was occupied )
: return : str Alias string ( Alias can be regenerated if previous alias was occupied )
@ -1582,7 +1582,7 @@ def ActivityItemDefAliasUpdate(inDef, inAliasStr, inGSettings = None):
inAliasStr = " TestDefAlias " )
inAliasStr = " TestDefAlias " )
# Now you can call TestDef by the alias "TestDefAlias" with help of ActivityItem (key Def = "TestDefAlias")
# Now you can call TestDef by the alias "TestDefAlias" with help of ActivityItem (key Def = "TestDefAlias")
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inDef : Def
: param inDef : Def
: param inAliasStr : String alias for associated def
: param inAliasStr : String alias for associated def
: return : str Alias string
: return : str Alias string
@ -1694,7 +1694,7 @@ def ProcessorActivityItemAppend(inGSettings = None, inDef=None, inArgList=None,
inActivityItemDict = lActivityItem )
inActivityItemDict = lActivityItem )
# Activity have been already append in the processor queue
# Activity have been already append in the processor queue
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inDef : def link or def alias ( look gSettings [ " Processor " ] [ " AliasDefDict " ] )
: param inDef : def link or def alias ( look gSettings [ " Processor " ] [ " AliasDefDict " ] )
: param inArgList : Args list for the Def
: param inArgList : Args list for the Def
: param inArgDict : Args dict for the Def
: param inArgDict : Args dict for the Def
@ -1892,7 +1892,7 @@ def ProcessDefIntervalCall(inDef, inIntervalSecFloat, inIntervalAsyncBool=False,
"""
"""
Use this procedure if you need to run periodically some def . Set def , args , interval and enjoy : )
Use this procedure if you need to run periodically some def . Set def , args , interval and enjoy : )
: param inGSettings : global settings
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inDef : def link , which will be called with interval inIntervalSecFloat
: param inDef : def link , which will be called with interval inIntervalSecFloat
: param inIntervalSecFloat : Interval in seconds between call
: param inIntervalSecFloat : Interval in seconds between call
: param inIntervalAsyncBool : False - wait interval before next call after the previous iteration result ; True - wait interval after previous iteration call
: param inIntervalAsyncBool : False - wait interval before next call after the previous iteration result ; True - wait interval after previous iteration call
@ -2033,7 +2033,7 @@ def SchedulerActivityTimeAddWeekly(inTimeHHMMStr="23:55:", inWeekdayList=None, i
inActivityList = [ lActivityItem ] )
inActivityList = [ lActivityItem ] )
# Activity will be executed at 04:34 Wednesday (2), thursday (3), friday (4)
# Activity will be executed at 04:34 Wednesday (2), thursday (3), friday (4)
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inTimeHHMMStr : Activation time from " 00:00 " to " 23:59 " . Example : " 05:29 "
: param inTimeHHMMStr : Activation time from " 00:00 " to " 23:59 " . Example : " 05:29 "
: param inWeekdayList : Week day list to initiate activity list . Use int from 0 ( monday ) to 6 ( sunday ) as list items . Example : [ 0 , 1 , 2 , 3 , 4 ] . Default value is everyday ( [ 0 , 1 , 2 , 3 , 4 , 5 , 6 ] )
: param inWeekdayList : Week day list to initiate activity list . Use int from 0 ( monday ) to 6 ( sunday ) as list items . Example : [ 0 , 1 , 2 , 3 , 4 ] . Default value is everyday ( [ 0 , 1 , 2 , 3 , 4 , 5 , 6 ] )
: param inActivityList : Activity list structure
: param inActivityList : Activity list structure
@ -2154,7 +2154,7 @@ def RDPSessionDublicatesResolve(inGSettings):
DEVELOPING Search duplicates in GSettings RDPlist
DEVELOPING Search duplicates in GSettings RDPlist
! def is developing !
! def is developing !
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: return :
: return :
"""
"""
pass
pass
@ -2183,7 +2183,7 @@ def RDPSessionConnect(inRDPSessionKeyStr, inRDPTemplateDict=None, inHostStr=None
inRDPTemplateDict = lRDPItemDict )
inRDPTemplateDict = lRDPItemDict )
# Orchestrator will create RDP session by the lRDPItemDict configuration
# Orchestrator will create RDP session by the lRDPItemDict configuration
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPTemplateDict : RDP configuration dict with settings ( see def Orchestrator . RDPTemplateCreate )
: param inRDPTemplateDict : RDP configuration dict with settings ( see def Orchestrator . RDPTemplateCreate )
: param inHostStr : Backward compatibility from Orchestrator v 1.1 .20 . Use inRDPTemplateDict
: param inHostStr : Backward compatibility from Orchestrator v 1.1 .20 . Use inRDPTemplateDict
@ -2235,7 +2235,7 @@ def RDPSessionDisconnect(inRDPSessionKeyStr, inBreakTriggerProcessWOExeList = No
inRDPSessionKeyStr = " RDPKey " )
inRDPSessionKeyStr = " RDPKey " )
# Orchestrator will disconnect RDP session and will stop to monitoring current RDP
# Orchestrator will disconnect RDP session and will stop to monitoring current RDP
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inBreakTriggerProcessWOExeList : List of the processes , which will stop the execution . Example [ " notepad " ]
: param inBreakTriggerProcessWOExeList : List of the processes , which will stop the execution . Example [ " notepad " ]
@ -2288,7 +2288,7 @@ def RDPSessionReconnect(inRDPSessionKeyStr, inRDPTemplateDict=None, inGSettings
inRDPTemplateDict = inRDPTemplateDict )
inRDPTemplateDict = inRDPTemplateDict )
# Orchestrator will reconnect RDP session and will continue to monitoring current RDP
# Orchestrator will reconnect RDP session and will continue to monitoring current RDP
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPTemplateDict : RDP configuration dict with settings ( see def Orchestrator . RDPTemplateCreate )
: param inRDPTemplateDict : RDP configuration dict with settings ( see def Orchestrator . RDPTemplateCreate )
: return :
: return :
@ -2330,7 +2330,7 @@ def RDPSessionMonitorStop(inRDPSessionKeyStr, inGSettings = None):
inRDPSessionKeyStr = " RDPKey " )
inRDPSessionKeyStr = " RDPKey " )
# Orchestrator will stop the RDP monitoring
# Orchestrator will stop the RDP monitoring
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: return : True every time : >
: return : True every time : >
"""
"""
@ -2354,7 +2354,7 @@ def RDPSessionLogoff(inRDPSessionKeyStr, inBreakTriggerProcessWOExeList = None,
inBreakTriggerProcessWOExeList = [ ' Notepad ' ] )
inBreakTriggerProcessWOExeList = [ ' Notepad ' ] )
# Orchestrator will logoff the RDP session
# Orchestrator will logoff the RDP session
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inBreakTriggerProcessWOExeList : List of the processes , which will stop the execution . Example [ " notepad " ]
: param inBreakTriggerProcessWOExeList : List of the processes , which will stop the execution . Example [ " notepad " ]
: return : True - logoff is successful
: return : True - logoff is successful
@ -2391,7 +2391,7 @@ def RDPSessionResponsibilityCheck(inRDPSessionKeyStr, inGSettings = None):
"""
"""
DEVELOPING , MAYBE NOT USEFUL Check RDP Session responsibility TODO NEED DEV + TEST
DEVELOPING , MAYBE NOT USEFUL Check RDP Session responsibility TODO NEED DEV + TEST
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: return : True every time
: return : True every time
"""
"""
@ -2448,7 +2448,7 @@ def RDPSessionProcessStartIfNotRunning(inRDPSessionKeyStr, inProcessNameWEXEStr,
inFlagGetAbsPathBool = True )
inFlagGetAbsPathBool = True )
# Orchestrator will start the process in RDP session
# Orchestrator will start the process in RDP session
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inProcessNameWEXEStr : Process name with extension ( . exe ) . This arg allow to check the process is running . Example : " Notepad.exe "
: param inProcessNameWEXEStr : Process name with extension ( . exe ) . This arg allow to check the process is running . Example : " Notepad.exe "
: param inFilePathStr : Path to run process if it is not running .
: param inFilePathStr : Path to run process if it is not running .
@ -2493,7 +2493,7 @@ def RDPSessionCMDRun(inRDPSessionKeyStr, inCMDStr, inModeStr="CROSSCHECK", inGSe
inModeStr = ' LISTEN ' )
inModeStr = ' LISTEN ' )
# Orchestrator will send CMD to RDP and return the result (see return section)
# Orchestrator will send CMD to RDP and return the result (see return section)
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inCMDStr : Any CMD string
: param inCMDStr : Any CMD string
: param inModeStr : Variants :
: param inModeStr : Variants :
@ -2548,7 +2548,7 @@ def RDPSessionProcessStop(inRDPSessionKeyStr, inProcessNameWEXEStr, inFlagForceC
inFlagForceCloseBool = True )
inFlagForceCloseBool = True )
# Orchestrator will send CMD to RDP and return the result (see return section)
# Orchestrator will send CMD to RDP and return the result (see return section)
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inProcessNameWEXEStr : Process name to kill . Example : ' notepad.exe '
: param inProcessNameWEXEStr : Process name to kill . Example : ' notepad.exe '
: param inFlagForceCloseBool : True - force close the process . False - safe close the process
: param inFlagForceCloseBool : True - force close the process . False - safe close the process
@ -2594,7 +2594,7 @@ def RDPSessionFileStoredSend(inRDPSessionKeyStr, inHostFilePathStr, inRDPFilePat
inRDPFilePathStr = " C: \\ RPA \\ TESTDIR \\ Test.py " )
inRDPFilePathStr = " C: \\ RPA \\ TESTDIR \\ Test.py " )
# Orchestrator will send CMD to RDP and return the result (see return section)
# Orchestrator will send CMD to RDP and return the result (see return section)
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inHostFilePathStr : Relative or absolute path to the file location on the Orchestrator side . Example : " TESTDIR \\ Test.py "
: param inHostFilePathStr : Relative or absolute path to the file location on the Orchestrator side . Example : " TESTDIR \\ Test.py "
: param inRDPFilePathStr : ! Absolute ! path to the destination file location on the RDP side . Example : " C: \\ RPA \\ TESTDIR \\ Test.py "
: param inRDPFilePathStr : ! Absolute ! path to the destination file location on the RDP side . Example : " C: \\ RPA \\ TESTDIR \\ Test.py "
@ -2639,7 +2639,7 @@ def RDPSessionFileStoredRecieve(inRDPSessionKeyStr, inRDPFilePathStr, inHostFile
inRDPFilePathStr = " C: \\ RPA \\ TESTDIR \\ Test.py " )
inRDPFilePathStr = " C: \\ RPA \\ TESTDIR \\ Test.py " )
# Orchestrator will send CMD to RDP and return the result (see return section)
# Orchestrator will send CMD to RDP and return the result (see return section)
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPSessionKeyStr : RDP Session string key - need for the further identification
: param inRDPFilePathStr : ! Absolute ! path to the destination file location on the RDP side . Example : " C: \\ RPA \\ TESTDIR \\ Test.py "
: param inRDPFilePathStr : ! Absolute ! path to the destination file location on the RDP side . Example : " C: \\ RPA \\ TESTDIR \\ Test.py "
: param inHostFilePathStr : Relative or absolute path to the file location on the Orchestrator side . Example : " TESTDIR \\ Test.py "
: param inHostFilePathStr : Relative or absolute path to the file location on the Orchestrator side . Example : " TESTDIR \\ Test.py "
@ -2675,7 +2675,7 @@ def GSettingsAutocleaner(inGSettings=None):
"""
"""
HIDDEN Interval gSettings auto cleaner def to clear some garbage .
HIDDEN Interval gSettings auto cleaner def to clear some garbage .
: param inGSettings : Global settings dict ( singleton )
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: return : None
: return : None
"""
"""
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
inGSettings = GSettingsGet ( inGSettings = inGSettings ) # Set the global settings
@ -2719,7 +2719,7 @@ def Orchestrator(inGSettings=None, inDumpRestoreBool = True, inRunAsAdministrato
"""
"""
Main def to start orchestrator
Main def to start orchestrator
: param inGSettings :
: param inGSettings : Глобальный словарь настроек Оркестратора ( синглтон )
: param inDumpRestoreBool :
: param inDumpRestoreBool :
: param inRunAsAdministratorBool :
: param inRunAsAdministratorBool :
: return :
: return :