IAppServerClass.Run

Syntax

Run(Instance: String; Arguments: String);

Parameters

Instance. Identifier of the launched instance of the task scheduler. The name of the XML file that contains task scheduler settings should be set as a value of the parameter. If the empty string is specified, the task scheduler with settings from the Scheduler.xml file is launched.

NOTE. Files of settings for task scheduler starting should be stored in the folder with installed Prognoz Platform 9. Name of the file in this parameter is set without the "xml" extension.

Arguments. Additional parameters of task scheduler launch. Parameters with which the task scheduler can be launched are described in following section: Task Scheduler Launching.

Description

The Run method launches task scheduler in accordance with the specified parameters.

Comments

Settings specified in the Instance parameter are passed into the -Instance key when launching task scheduler. The rest of the keys are passed in the Arguments parameter.

Example

Executing the example requires the Test.xml file containing settings for task scheduler starting in the folder with installed Prognoz Platform 9.

Sub UserProc;
Var
    AppSvr: IAppServerClass;
Begin
    AppSvr := New AppServerClass.Create;
    AppSvr.Run("Test""-Silent");
End Sub UserProc;

On executing the example the task scheduler with settings from the specified file is launched.

See also:

IAppServerClass