|
|
@ -3,6 +3,7 @@ import http.client
|
|
|
|
import json
|
|
|
|
import json
|
|
|
|
import pdb
|
|
|
|
import pdb
|
|
|
|
import os
|
|
|
|
import os
|
|
|
|
|
|
|
|
import sys
|
|
|
|
import subprocess
|
|
|
|
import subprocess
|
|
|
|
#Глобальная переменная - все глобальные значения программы
|
|
|
|
#Глобальная переменная - все глобальные значения программы
|
|
|
|
global mGlobalDict
|
|
|
|
global mGlobalDict
|
|
|
@ -21,6 +22,9 @@ global mGlobalDict
|
|
|
|
# {
|
|
|
|
# {
|
|
|
|
# type: <ActivityCMDRun>,
|
|
|
|
# type: <ActivityCMDRun>,
|
|
|
|
# code: <str>
|
|
|
|
# code: <str>
|
|
|
|
|
|
|
|
# },
|
|
|
|
|
|
|
|
# {
|
|
|
|
|
|
|
|
# type: <ActivityRestartOrchestrator>
|
|
|
|
# }
|
|
|
|
# }
|
|
|
|
# ]
|
|
|
|
# ]
|
|
|
|
#
|
|
|
|
#
|
|
|
@ -57,5 +61,9 @@ def ProcessingRun(inConfigurationDict):
|
|
|
|
subprocess.Popen(lCMDCode)
|
|
|
|
subprocess.Popen(lCMDCode)
|
|
|
|
lResultCMDRun=1#os.system(lCMDCode)
|
|
|
|
lResultCMDRun=1#os.system(lCMDCode)
|
|
|
|
lResult["actionListResult"][-1] = {**lResult["actionListResult"][-1], **{"result":str(lResultCMDRun)}}
|
|
|
|
lResult["actionListResult"][-1] = {**lResult["actionListResult"][-1], **{"result":str(lResultCMDRun)}}
|
|
|
|
#Вернуть результат
|
|
|
|
#Обработка команды ActivityRestartOrchestrator
|
|
|
|
|
|
|
|
if lItem["type"]=="ActivityRestartOrchestrator":
|
|
|
|
|
|
|
|
os.execl(sys.executable,os.path.abspath(__file__),*sys.argv)
|
|
|
|
|
|
|
|
sys.exit(0)
|
|
|
|
|
|
|
|
#Вернуть результат
|
|
|
|
return lResult
|
|
|
|
return lResult
|