-
Notifications
You must be signed in to change notification settings - Fork 3
xsjob
Ayhan Rashidov edited this page Sep 5, 2022
·
1 revision
The .xsjob file defines the details of a task that you want to run (for example, an XS JavaScript or an SQLScript) at a scheduled interval.
The XS job file uses a cron-like syntax to define the schedule at which the service defined in an XS JavaScript or SQLScript must run, as you can see in the following example, which runs the specified job (the stock-price checking service yahoo.xsjs) on the 59th second minute of every minute.
The information on how to develop and transform a design-time xsjob object for a Kronos application.
{
"description": "Read stock value",
"action": "yahoo:yahoo.xsjs::readStock",
"schedules": [
{
"description": "Read current stock value",
"xscron": "* * * * * * 59",
"parameter": {
"stock": "SAP.DE"
}
}
]
}
https://github.com/codbex/codbex-kronos/tree/main/modules/engines/engine-xsjob