Scheduled processing

Since Spring Release 2018 it is possible to schedule processing with better precision.

Rules manager

In the Rules manager the scheduling is set per group. If the group is set to "Only scheduled" or "Normal and scheduled", the group is scheduled and is activated by a time expression.

For processing only per schedule, the "Only scheduled" should be set, which will disable event based triggering for the group.

Time expression

The built-in expressions are yearly, monthly, weekly, daily and hourly. In addition to these there is also "Custom", which enables a greater precision.

Selecting "Custom" will enable the row showing the expression in cron, which can be adapted to better suit the business requirements. Please note there is currently no validation on "Custom" expressions.

Cron

IS Tools' scheduling expressions use a variant of Quartz cron format, where no parameter for seconds, minutes or years are supported. In an IS Tools expression, the first parameter is hour, and the last is day of week.

There are several online services for creating expressions, such as http://www.cronmaker.com/. The syntax is explained at http://www.quartz-scheduler.org.

The expression in IS Tools contains of four positions - hour, day of month, month and day of week. Each position can either be set by one or more valid options. The special option * is used instead of specifying all options. The special option ? is used for not specifying an option, and must be used in either the position for day of week or day of month. Both positions must not use *.

 ┌───────────── hour (0 - 23)
 │ ┌───────────── day of month (1 - 31)
 │ │ ┌───────────── month (1 - 12)
 │ │ │ ┌───────────── day of week (1 - 7)
 │ │ │ │
 │ │ │ │
 │ │ │ │
 * * * *

Exempel

Each hour is given with the following expression:

* * * ?

Every monday at lunchtime is expressed as:

12 ? * MON

Weekdays at 08, 12 and 18 is expressed as:

8,12,18 ? * MON-FRI

The 15:th each month by midnight is expressed as:

0 15 * ?

More tips