PMCORE-1789

This commit is contained in:
Henry Jordan
2020-07-09 20:13:49 +00:00
parent 24a8bf836f
commit dd723548b4
2 changed files with 33 additions and 29 deletions

View File

@@ -307,6 +307,7 @@ if ($RBAC->userCanAccess('PM_TASK_SCHEDULER_ADMIN') === 1) {
G::LoadTranslation("ID_TASK_SCHEDULER_EMAILS_NOTIFICATIONS"), G::LoadTranslation("ID_TASK_SCHEDULER_EMAILS_NOTIFICATIONS"),
'', '', G::LoadTranslation("ID_TASK_SCHEDULER") '', '', G::LoadTranslation("ID_TASK_SCHEDULER")
); );
/*----------------------------------********---------------------------------*/
$G_TMP_MENU->AddIdRawOption( $G_TMP_MENU->AddIdRawOption(
'ID_MENU_PLUGINS', '../scheduler/index?category=plugins', 'ID_MENU_PLUGINS', '../scheduler/index?category=plugins',
G::LoadTranslation("ID_TASK_SCHEDULER_PLUGINS"), G::LoadTranslation("ID_TASK_SCHEDULER_PLUGINS"),
@@ -321,5 +322,6 @@ if ($RBAC->userCanAccess('PM_TASK_SCHEDULER_ADMIN') === 1) {
'ID_MENU_REPORTING', '../scheduler/index?category=reporting', 'ID_MENU_REPORTING', '../scheduler/index?category=reporting',
G::LoadTranslation("ID_TASK_SCHEDULER_REPORTING"), G::LoadTranslation("ID_TASK_SCHEDULER_REPORTING"),
'', '', G::LoadTranslation("ID_TASK_SCHEDULER") '', '', G::LoadTranslation("ID_TASK_SCHEDULER")
); );
/*----------------------------------********---------------------------------*/
} }

View File

@@ -61,6 +61,20 @@ class TaskSchedulerBM
"expression" => "0 */1 * * 0,1,2,3,4,5,6", "expression" => "0 */1 * * 0,1,2,3,4,5,6",
"description" => 'ID_TASK_SCHEDULER_CLEAN_SELF_DESC' "description" => 'ID_TASK_SCHEDULER_CLEAN_SELF_DESC'
], ],
[
"title" => "ID_TIMER_EVENT",
"enable" => "1",
"service" => "",
"category" => "case_actions",
"file" => "workflow/engine/bin/timereventcron.php",
"filew" => "workflow\\engine\bin\\timereventcron.php",
"startingTime" => null,
"endingTime" => null,
"everyOn" => "1",
"interval" => "week",
"expression" => "*/1 * * * 0,1,2,3,4,5,6",
"description" => "ID_TIMER_EVENT_DESC"
],
[ [
"title" => "ID_TASK_SCHEDULER_CASE_EMAILS", "title" => "ID_TASK_SCHEDULER_CASE_EMAILS",
"enable" => "1", "enable" => "1",
@@ -75,20 +89,6 @@ class TaskSchedulerBM
"expression" => "*/5 * * * 0,1,2,3,4,5,6", "expression" => "*/5 * * * 0,1,2,3,4,5,6",
"description" => "ID_TASK_SCHEDULER_CASE_EMAILS_DESC" "description" => "ID_TASK_SCHEDULER_CASE_EMAILS_DESC"
], ],
[
"title" => "ID_TASK_SCHEDULER_ACTION_EMAIL",
"enable" => "1",
"service" => "",
"category" => "emails_notifications",
"file" => "workflow/engine/bin/actionsByEmailEmailResponse.php",
"filew" => "workflow\\engine\bin\actionsByEmailEmailResponse.php",
"startingTime" => null,
"endingTime" => null,
"everyOn" => "1",
"interval" => "week",
"expression" => "*/5 * * * 0,1,2,3,4,5,6",
"description" => "ID_TASK_SCHEDULER_ACTION_EMAIL_DESC"
],
[ [
"title" => "ID_TASK_SCHEDULER_MESSAGE_EVENTS", "title" => "ID_TASK_SCHEDULER_MESSAGE_EVENTS",
"enable" => "1", "enable" => "1",
@@ -102,6 +102,21 @@ class TaskSchedulerBM
"interval" => "week", "interval" => "week",
"expression" => "*/5 * * * 0,1,2,3,4,5,6", "expression" => "*/5 * * * 0,1,2,3,4,5,6",
"description" => "ID_TASK_SCHEDULER_MESSAGE_EVENTS_DESC" "description" => "ID_TASK_SCHEDULER_MESSAGE_EVENTS_DESC"
]
/*----------------------------------********---------------------------------*/
,[
"title" => "ID_TASK_SCHEDULER_ACTION_EMAIL",
"enable" => "1",
"service" => "",
"category" => "emails_notifications",
"file" => "workflow/engine/bin/actionsByEmailEmailResponse.php",
"filew" => "workflow\\engine\bin\actionsByEmailEmailResponse.php",
"startingTime" => null,
"endingTime" => null,
"everyOn" => "1",
"interval" => "week",
"expression" => "*/5 * * * 0,1,2,3,4,5,6",
"description" => "ID_TASK_SCHEDULER_ACTION_EMAIL_DESC"
], ],
[ [
"title" => "ID_TASK_SCHEDULER_SEND_NOT", "title" => "ID_TASK_SCHEDULER_SEND_NOT",
@@ -174,21 +189,8 @@ class TaskSchedulerBM
"interval" => "week", "interval" => "week",
"expression" => "0 */1 * * 0,1,2,3,4,5,6", "expression" => "0 */1 * * 0,1,2,3,4,5,6",
"description" => "ID_TASK_SCHEDULER_PM_PLUGINS_DESC" "description" => "ID_TASK_SCHEDULER_PM_PLUGINS_DESC"
],
[
"title" => "ID_TIMER_EVENT",
"enable" => "1",
"service" => "",
"category" => "case_actions",
"file" => "workflow/engine/bin/timereventcron.php",
"filew" => "workflow\\engine\bin\\timereventcron.php",
"startingTime" => null,
"endingTime" => null,
"everyOn" => "1",
"interval" => "week",
"expression" => "*/1 * * * 0,1,2,3,4,5,6",
"description" => "ID_TIMER_EVENT_DESC"
] ]
/*----------------------------------********---------------------------------*/
]; ];
/** /**
* Return the records in Schedule Table by category * Return the records in Schedule Table by category