|
|
|
@ -883,6 +883,7 @@ $(document).ready(function() {
|
|
|
|
|
if (lUACAsk(["pyOpenRPADict","AdminDict","RestartOrchestratorBool"])) { $(".UACClient-pyOpenRPADict-AdminDict-RestartOrchestratorBool").show(); }
|
|
|
|
|
if (lUACAsk(["pyOpenRPADict","AdminDict","RestartOrchestratorGITPullBool"])) { $(".UACClient-pyOpenRPADict-AdminDict-RestartOrchestratorGITPullBool").show(); }
|
|
|
|
|
if (lUACAsk(["pyOpenRPADict","AdminDict","RestartPCBool"])) { $(".UACClient-pyOpenRPADict-AdminDict-RestartPCBool").show(); }
|
|
|
|
|
if (lUACAsk(["pyOpenRPADict","AdminDict","Debugging"])) { $(".UACClient-pyOpenRPADict-AdminDict-Debugging").show(); }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -893,4 +894,44 @@ $(document).ready(function() {
|
|
|
|
|
mGlobal.pyOpenRPA.ServerLogListDoRenderTrue(); // Init button to freeze/unfreeze textare with logs
|
|
|
|
|
|
|
|
|
|
$('.ui.dropdown').dropdown();
|
|
|
|
|
|
|
|
|
|
////////////////////////////////////////////
|
|
|
|
|
// Debugging
|
|
|
|
|
/// Execute ActivityItem
|
|
|
|
|
mGlobal.pyOpenRPA.DebuggingExecute=function() {
|
|
|
|
|
///EXAMPLE
|
|
|
|
|
// {
|
|
|
|
|
// "Def":"OSCMD", // def link or def alias (look gSettings["Processor"]["AliasDefDict"])
|
|
|
|
|
// "ArgList":[], // Args list
|
|
|
|
|
// "ArgDict":{"inCMDStr":lCMDCode,"inRunAsyncBool":false}, // Args dictionary
|
|
|
|
|
// "ArgGSettings": null, // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
|
|
|
|
|
// "ArgLogger": "inLogger" // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
|
|
|
|
|
// }
|
|
|
|
|
///Подготовить конфигурацию
|
|
|
|
|
lArgListStr = $(".mGlobal-pyOpenRPA-Debugging-ArgList")[0].value
|
|
|
|
|
lArgDictStr = $(".mGlobal-pyOpenRPA-Debugging-ArgDict")[0].value
|
|
|
|
|
lArgGSettingsStr = $(".mGlobal-pyOpenRPA-Debugging-ArgGSettings")[0].value
|
|
|
|
|
lArgLoggerStr = $(".mGlobal-pyOpenRPA-Debugging-ArgLogger")[0].value
|
|
|
|
|
lActivityItem = {
|
|
|
|
|
"Def":$(".mGlobal-pyOpenRPA-Debugging-Def")[0].value, // def link or def alias (look gSettings["Processor"]["AliasDefDict"])
|
|
|
|
|
"ArgList":(lArgListStr == "" ? [] : JSON.parse(lArgListStr)), // Args list
|
|
|
|
|
"ArgDict":(lArgDictStr == "" ? {} : JSON.parse(lArgDictStr)), // Args dictionary
|
|
|
|
|
"ArgGSettings": (lArgGSettingsStr == "" ? null : lArgGSettingsStr), // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
|
|
|
|
|
"ArgLogger": (lArgLoggerStr == "" ? null : lArgLoggerStr) // Name of GSettings attribute: str (ArgDict) or index (for ArgList)
|
|
|
|
|
}
|
|
|
|
|
lData = [lActivityItem]
|
|
|
|
|
$.ajax({
|
|
|
|
|
type: "POST",
|
|
|
|
|
url: '/pyOpenRPA/ActivityListExecute',
|
|
|
|
|
data: JSON.stringify(lData),
|
|
|
|
|
success:
|
|
|
|
|
function(lData,l2,l3)
|
|
|
|
|
{
|
|
|
|
|
var lResponseJSON=JSON.parse(lData)
|
|
|
|
|
console.log(lResponseJSON)
|
|
|
|
|
$(".mGlobal-pyOpenRPA-Debugging-Output")[0].value = lData
|
|
|
|
|
},
|
|
|
|
|
dataType: "text"
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
});
|