In this article:

Daily

Weekly

Monthly

Once

Repeat Task

After System Event

After Custom Event

Example of Event Generation

Not Specified

Setting Frequency of Task Execution

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

Task execution frequency settings are determined on the Schedule tab/page in task setup wizard.

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

To open the task setup wizard

The page/tab appearance depends on the selected task execution frequency.

To set up schedule:

To deactivate the task:

A deactivated task has the Inactive status and will not be executed.

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

Daily

The set of parameters when the Daily type is selected.

The following settings are available:

After executing the operations the task is started for execution daily at the specified time period.

Weekly

The set of parameters when the Weekly type is selected.

The following settings are available:

After executing the operations the task is started for execution weekly at the specified time period.

Monthly

The set of parameters when the Monthly type is selected.

Web application

The following settings are available:

After executing the operations the task is started for execution monthly at the specified time period.

Once

The set of parameters when the Once type is selected.

The following settings are available:

After executing the operations the task is started for execution once according to the selected start mode and is finished at the selected time, if it is set.

Repeat Task

The set of parameters when the Repeat Task type is selected.

The following settings are available:

After executing the operations the task is started for execution according to the specified time interval.

After System Event

NOTE. It is available only in the desktop application.

On selecting the After System Event option, the task will be executed after specified system event. The Schedule page/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 operations the task is started for execution after the system event occurred by specified parameters.

After Custom Event

NOTE. It is available only in the desktop application.

On selecting the After Custom Event option, the task will be executed after custom event that is called from the Fore code. A custom event can be selected on the Schedule page/tab:

The following settings are available:

After executing the operations the task is started for execution after the custom event occurred which is called from the Fore 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