Skip to content
Ayhan Rashidov edited this page Sep 5, 2022 · 1 revision

.xsjob

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.

Reference

The information on how to develop and transform a design-time xsjob object for a Kronos application.

SAP Help

https://help.sap.com/docs/SAP_HANA_PLATFORM/d89d4595fae647eabc14002c0340a999/6c83a8cd49ac459e88cb0fbb94ee3f38.html

Example Artifact Syntax

{
    "description": "Read stock value",
    "action": "yahoo:yahoo.xsjs::readStock",
    "schedules": [
       {
          "description": "Read current stock value",
          "xscron": "* * * * * * 59",
          "parameter": {
             "stock": "SAP.DE"
             }
       }
    ]
}

Module

https://github.com/codbex/codbex-kronos/tree/main/modules/engines/engine-xsjob

Clone this wiki locally