Home
Main Introduction Features Constants Statements Database Objects Parser Serial-Communication Samples Misc
Objects>Schedule Object
Caravan Business Server>Help>Objects>Schedule Object
Syntax <caravan>schedule=(timespec=n1,n2,....,n24&amp;....timespec=n1,n2...n24&amp;count=n)</caravan>
Text Caravan Schedule object when specified in an HTML page makes the page to be executed at specified intervals.
Caravan Schedule syntax can be placed anywhere in the html file. Only the first occurrence is valid, the rest are ignored. The html files must be placed in the templates path.
The output of the scheduled process is directed to tmp\\schedule.log

The domain at run time is "admin". Persistent objects are not accessible at schedule time. To prevent unauthorised access to these files, <caravan>domain admin</caravan> must be placed at the top of the file. The Schedule syntax can also be executed manually from the browser.
It is necessary that at least one timespec is specified. Count can be any integer value and is optional. If count is specified then the scheduled html file is executed only for the specified number of times.
Sample <caravan>schedule=(minute=10)</caravan>

schedules this html file for execution 10 minutes past every hour.

<caravan>schedule=(minute=10,20,30,40,50,0)</caravan>

schedules this html file for execution every 10 minutes.

<caravan>schedule=(minute=10,20,30,40,50,0&amp;day=wed)</caravan>

schedules this html file for execution 10,20,30,40,50 and 0 minutes past every hour on Wednesdays only.

<caravan>schedule=(month=march&minute=10,20,30,40,50,0&day=wed)</caravan>

schedules this html file for execution 10,20,30,40,50 and 0 minutes past every hour on all Wednesdays in the month of March.

<caravan>schedule=(day=fri&date=13)</caravan>

schedules this html file for every fri the 13th at 0:0:0 hrs
Properties Timespec
Back