|
|
|
@ -5,6 +5,7 @@ import pdb
|
|
|
|
|
import os
|
|
|
|
|
import sys
|
|
|
|
|
import subprocess
|
|
|
|
|
import copy
|
|
|
|
|
import win32ts
|
|
|
|
|
#Глобальная переменная - все глобальные значения программы
|
|
|
|
|
global mGlobalDict
|
|
|
|
@ -50,7 +51,10 @@ def ProcessingRun(inConfigurationDict):
|
|
|
|
|
#print(mGlobalDict)
|
|
|
|
|
lDateTimeString=datetime.datetime.strftime(datetime.datetime.now(),"%Y.%m.%d %H:%M:%S::%f")
|
|
|
|
|
lResult={"dateTime":lDateTimeString, "state":"connected", "actionListResult":[]}
|
|
|
|
|
|
|
|
|
|
lTransactionItem={}
|
|
|
|
|
#Transaction start
|
|
|
|
|
lTransactionItem["DateTimeStart"] = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%f")
|
|
|
|
|
lTransactionItem["ActivityList"]=[]
|
|
|
|
|
for lItem in inConfigurationDict["actionList"]:
|
|
|
|
|
#Добавить входные значения
|
|
|
|
|
lResult["actionListResult"].append({"inArgs":lItem})
|
|
|
|
@ -130,5 +134,15 @@ def ProcessingRun(inConfigurationDict):
|
|
|
|
|
#pdb.set_trace()
|
|
|
|
|
lResult["actionListResult"][-1]["key_list"]=lItem["key_list"]
|
|
|
|
|
lResult["actionListResult"][-1]["value"]=lGlobalDict.get(lItem["key_list"][-1],None)
|
|
|
|
|
##################
|
|
|
|
|
#Trace activity
|
|
|
|
|
##################
|
|
|
|
|
if mGlobalDict["Processor"].get(f"TransactionTrace_{lItem['type']}",True):
|
|
|
|
|
#Add activity in TransactionList if it is applicable
|
|
|
|
|
lTransactionItem["ActivityList"].append(copy.deepcopy(lItem))
|
|
|
|
|
#Transaction end
|
|
|
|
|
lTransactionItem["DateTimeEnd"] = datetime.datetime.now().strftime("%Y-%m-%dT%H:%M:%S.%f")
|
|
|
|
|
#Перенос результатов в TransactionList
|
|
|
|
|
mGlobalDict["Processor"]["TransactionList"].append(lTransactionItem)
|
|
|
|
|
#Вернуть результат
|
|
|
|
|
return lResult
|
|
|
|
|