BUG-14598. NEW FEATURE SelfService One Execution.

A dropdown was added in the SelfService configuration, this dropdown let you set if the trigger seted in the self service is gonna be executed ONE time or every time that cron is executed.

Some validations where added in the cron_single.php file to save the data in the new table 'APP_TIMEOUT_ACTION_EXECUTED' when the Execution is set in ONCE. If the app_UID is find in this table the trigger will not be executed, if is not find the trigger will be executed.
This commit is contained in:
jennylee
2014-09-08 13:28:14 -04:00
parent 579919acde
commit e116e77379
13 changed files with 1507 additions and 11 deletions

View File

@@ -37,17 +37,22 @@
TGR.TRI_UID = CON.CON_ID AND CON.CON_CATEGORY = 'TRI_TITLE' AND CON.CON_LANG = '@#LANG'
ORDER BY CON.CON_VALUE ASC
]]><en><![CDATA[Trigger to execute]]><option name=""><![CDATA[- Select a trigger -]]></option></en></TAS_SELFSERVICE_TRIGGER_UID>
<TAS_SELFSERVICE_EXECUTION type="dropdown">
<en><![CDATA[Execute Trigger]]><option name="EVERY_TIME"><![CDATA[Every time scheduled by cron]]></option><option name="ONCE"><![CDATA[Once]]></option></en>
</TAS_SELFSERVICE_EXECUTION>
<JS type="javascript"><![CDATA[
var selfServiceTimeoutDataShow = function (sw)
{
hideRowById("TAS_SELFSERVICE_TIME");
hideRowById("TAS_SELFSERVICE_TIME_UNIT");
hideRowById("TAS_SELFSERVICE_TRIGGER_UID");
hideRowById("TAS_SELFSERVICE_EXECUTION");
if (sw == true) {
showRowById("TAS_SELFSERVICE_TIME");
showRowById("TAS_SELFSERVICE_TIME_UNIT");
showRowById("TAS_SELFSERVICE_TRIGGER_UID");
showRowById("TAS_SELFSERVICE_EXECUTION");
}
};
@@ -123,6 +128,7 @@ if (aTaskFlag[1])
}
getField("TAS_SELFSERVICE_TRIGGER_UID").value = oTaskData.TAS_SELFSERVICE_TRIGGER_UID;
getField("TAS_SELFSERVICE_EXECUTION").value = oTaskData.TAS_SELFSERVICE_EXECUTION;
showTextpm();
break;