|
|
@ -5,6 +5,7 @@ import pdb
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
import sys
|
|
|
|
import sys
|
|
|
|
import subprocess
|
|
|
|
import subprocess
|
|
|
|
|
|
|
|
import copy
|
|
|
|
import win32ts
|
|
|
|
import win32ts
|
|
|
|
#Глобальная переменная - все глобальные значения программы
|
|
|
|
#Глобальная переменная - все глобальные значения программы
|
|
|
|
global mGlobalDict
|
|
|
|
global mGlobalDict
|
|
|
@ -50,7 +51,10 @@ def ProcessingRun(inConfigurationDict):
|
|
|
|
#print(mGlobalDict)
|
|
|
|
#print(mGlobalDict)
|
|
|
|
lDateTimeString=datetime.datetime.strftime(datetime.datetime.now(),"%Y.%m.%d %H:%M:%S::%f")
|
|
|
|
lDateTimeString=datetime.datetime.strftime(datetime.datetime.now(),"%Y.%m.%d %H:%M:%S::%f")
|
|
|
|
lResult={"dateTime":lDateTimeString, "state":"connected", "actionListResult":[]}
|
|
|
|
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"]:
|
|
|
|
for lItem in inConfigurationDict["actionList"]:
|
|
|
|
#Добавить входные значения
|
|
|
|
#Добавить входные значения
|
|
|
|
lResult["actionListResult"].append({"inArgs":lItem})
|
|
|
|
lResult["actionListResult"].append({"inArgs":lItem})
|
|
|
@ -130,5 +134,15 @@ def ProcessingRun(inConfigurationDict):
|
|
|
|
#pdb.set_trace()
|
|
|
|
#pdb.set_trace()
|
|
|
|
lResult["actionListResult"][-1]["key_list"]=lItem["key_list"]
|
|
|
|
lResult["actionListResult"][-1]["key_list"]=lItem["key_list"]
|
|
|
|
lResult["actionListResult"][-1]["value"]=lGlobalDict.get(lItem["key_list"][-1],None)
|
|
|
|
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
|
|
|
|
return lResult
|
|
|
|