SetScheduler

Syntax

SetSchedulerResult SetScheduler(SchedulerId tScheduler, SetSchedulerArg tArg)

Parameters

tScheduler. Scheduled tasks container instance moniker.

tArg. Parameters of changing container metadata.

Description

The SetScheduler operation changes metadata of a scheduled tasks container.

Comments

This operation enables the user to execute the following operations:

To execute the task, in the tScheduler parameter specify the scheduled tasks container instance moniker, and in the tArg parameter specify parameters of change. The moniker can be obtained on executing the OpenScheduler operation. The tArg.pattern field is used to specify the pattern, according to which the changes are made, and the updated tasks metadata is specified in the tArg.meta field. All the changes will be saved automatically.

To start tasks, set the tArg.pattern.execTasks field to true. To start the scheduler, specify the appState.running fields in the pattern and updated metadata. If the tArg.refresh field is defined, scheduler settings are updated on operation execution.

The operation results in the updated tasks metadata if the tArg.metaGet field was defined. The execResults field also shows the results of tasks execution if any tasks have been started. If the scheduler is refreshed, the results of the refresh are available in the refreshState field.

Example

Various methods of using the operation are given in the following examples:

Example name

See also:

Working with Modeling Container