PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Immediately starts the execution of a scheduled task on a WEBDEV Application Server.
Example
MyScheduledTask is appServerScheduledTask

// Programs the task so that it is run every hour
MyScheduledTask is appServerScheduledTask
MyScheduledTask..Name = "MyTask"
MyScheduledTask..Procedure = MyProc
MyScheduledTask..Month = "*"
MyScheduledTask..DayOfMonth = "*"
MyScheduledTask..DayOfWeek = "*"
MyScheduledTask..Hour = "*"
MyScheduledTask..Minute = "0""

// Starts the task immediately
AppServerRunScheduledTask(MyScheduledTask)
Syntax
<Result> = AppServerRunScheduledTask(<Scheduled Task>)
<Result>: Boolean
  • True if the execution of the scheduled task was started.
  • False otherwise. To find out the error details, use ErrorInfo associated with the errMessage constant.
<Scheduled Task>: Associated type
Scheduled task to run. This parameter can correspond to:
  • an appServerScheduledTask variable.
  • a procedure name. The scheduled task associated with the name of this procedure will be run.
  • the name of a scheduled task. The corresponding scheduled task will be run.
Remarks
  • The task is run in an independent session (like all the other scheduled tasks).
  • The task is not run if it already is currently run.
  • The task is run even if the task is disabled.
  • If an error occurs when starting or running the task, the error will not be transmitted by AppServerRunScheduledTask. The error will have to be processed in the process, in a LOG file for example.
Components
WEBDEV - Server code wd230page.dll
Linux wd230page.so
Minimum required version
  • Version 22
Comments
Click [Add] to post a comment