cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

CronJob trigger: documentation, samples

Former Member
0 Kudos
2,752

There are a lot of possible settings for triggering cronjobs. Is there a documentation available explaining the meaning and usage of these settings? May be some useful samples?

Thanks a lot, Heiko

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Heiko old buddy :-) look here https://www.freeformatter.com/cron-expression-generator-quartz.html or http://www.cronmaker.com/ You can generate an expression as you like or convert one into a semantical meaning

So long Sebastian

Former Member
0 Kudos

Oh, thanks. I thought, it would be a special hybris stuff.

Have a nice summer, Heiko

Answers (3)

Answers (3)

lukas-ninow
Discoverer
0 Kudos

In case anyone stumbles upon this asking the same question(s): there is a comprehensive documentation available here:

cron Expression Reference (sap.com)

Former Member
0 Kudos

Ok. So I should narrow my question: Is there a documentation available explaining the meaning and usage of cronExpression? May be some useful samples? Why "0 16 * ?" ?? And what ist with: - cronjob should run every xx minutes. - cronjob should run twice a day, but only at work days - ..

It would be good, not to have 1 or 2 examples, but a comprehensive documentation concerning this feature.

Thanks a a lot, Heiko

geffchang
Active Contributor
0 Kudos

Do you have access to help.hybris.com? It is described here: https://help.hybris.com/6.7.0/hcd/8b9d40fa86691014b471f5bf5a9715dd.html

There are only 2 important attributes:

  • active: Should the trigger be enabled or not?

  • cronExpression: Schedule (configured as a cron expression) of when the job should run

Example for CronJob:

 INSERT_UPDATE Trigger;cronjob(code)[unique=true];active;cronExpression
 ;sampleCronJob;true;0 * 16 * * ?

Instead of cronjob, you could also specify job, like:

 INSERT_UPDATE Trigger;job(code)[unique=true];active;cronExpression
 ;sampleJob;true;0 * 16 * * ?