|
|
|
|
AppServerAddScheduledTask (Function) In french: ServeurAppliAjouteTâchePlanifiée Adds a new scheduled task to the application (site or Webservice). Caution: The new scheduled task is not persistent. It will be deleted when restarting the WEBDEV Application Server or when deploying the site. It is recommended to use the "Site configuration": Start Application Server" event to use AppServerAddScheduledTask. The scheduled task will be automatically recreated. // Programs the task so that it is run every hour MyScheduledTask is appServerScheduledTask MyScheduledTask.Name = "MyTask" MyScheduledTask.Procédure = MyProc MyScheduledTask.Month = "*" MyScheduledTask.DayOfMonth = "*" MyScheduledTask.DayOfWeek = "*" MyScheduledTask.Hour = "*" MyScheduledTask.Minute = "0"  IF NOT AppServerAddScheduledTask(MyScheduledTask) THEN // Error case (if a task with the same name already exists for example) END
Syntax
<Result> = AppServerAddScheduledTask(<Scheduled task>)
<Result>: Boolean - True if the scheduled task was added.
- False otherwise. To get more details on the error, use ErrorInfo with the errMessage constant.
<Scheduled task>: appServerScheduledTask variable Name of appServerScheduledTask variable corresponding to the description of the scheduled task to add.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|