Setting Frequency of Task Execution

In this article:

Daily

Weekly

Monthly

Once

Repeat Task

After System Event

After Custom Event

Example of Event Generation

Not Specified

Various execution frequency types can be set up for task: once, daily, weekly, monthly, and also if a system or custom event occurs.

To set up task execution frequency, use the Schedule tab in the task parameters setup dialog box.

NOTE. To execute tasks, launch task scheduler on BI-Server or any other server with the same configuration.

To open dialog to set up task parameters, create new or open ready task:

To create a new task

To open ready task

The tab view is similar to all types of tasks:

The tab view depends on the selected task execution frequency.

To set up schedule, select the Perform Task checkbox. Frequency variants from the list will be available in the list. Deselecting the Perform Task checkbox deactivates the task. A deactivated task has the Inactive status and it will bot be executed.

NOTE. Real time of task execution depends on the interval of task container checking.

Daily

When the Daily option is selected, the tab looks as follows:

The following settings are available:

After executing the actions, the task will run for execution daily at the specified time period.

Weekly

When the Weekly option is selected, the tab looks as follows:

The following settings are available:

After executing the actions, the task will run for execution weekly at the specified time period.

Monthly

When the Monthly option is selected, the tab looks as follows:

The following settings are available:

After executing the actions, the task will run for execution monthly at the specified time period.

Once

When the Once option is selected, the tab looks as follows:

The following settings are available:

After executing the actions, the task will be runned once for execution according to the selected run mode and it finishes execution at the selected time, if it is set.

Repeat Task

When the Repeat Task option is selected, the tab looks as follows:

The following settings are available:

After executing the actions, the task will be runned for execution according to the specified time interval.

After System Event

On selecting the After System Event option, the task will be executed after specified system event. The Schedule tab enables the user to set up system event parameters:

The following settings are available:

User or workstation are selected depending on the place where the event will be generated. One or several options can be selected.

After executing the actions, the task will be runned for execution after the system event occurred by specified parameters.

After Custom Event

On selecting the After Custom Event option, the task will be executed after custom eventthat is called from the Fore/Fore.NET code. The selection of the custom event will be available on the Schedule tab:

The following settings are available:

After executing the actions, the task will be runned for execution after the custom event occurred which is called from the Fore/Fore.NET code.

Example of Event Generation

The specified example generates the CustomEvent event. If on performing the example the task scheduler is started, and the container, with which the task scheduler works, has tasks started on executing this event, they are performed.

Sub InvokeEvent;
Var
    MB: IMetabase;
    CustomClassExtender: IMetabaseCustomExtender;
    Events: IMetabaseCustomForeEvents;
    ForeEvent: IMetabaseCustomForeEvent;
Begin
    MB := MetabaseClass.Active;
    //Getting custom class container
    CustomClassExtender := Mb.SpecialObject(MetabaseSpecialObject.CustomExtender).Edit As IMetabaseCustomExtender;
    //Getting event list
    Events := CustomClassExtender.Events;
    ForeEvent := Events.FindByName("CustomEvent");
    //Generating event
    ForeEvent.Invoke;
End Sub InvokeEvent;

Not Specified

The task schedule is not specified. The option is used to combine functionality with previous versions.

See also:

Creating Scheduled Tasks