How to set a cron expression in zeebe bpmn

Hi Team,

How to set a cron expression in zeebe bpmn and execute the job.

please refer sample example.

thanks
rk

1 Like

Hi @Ramakrishna,

currently, cron expressions are not supported. Please have a look at the documentation: https://docs.zeebe.io/bpmn-workflows/timer-events/timer-events.html

Best regards,
Philipp

Hi @philipp.ossler,

I went through the url you have referred.

I want to run a job on daily basis so if i gave a time 10AM it should run daily at 10AM also i want to send an alert mail like job completed successfully or failed

please help me how to run the job daily at 10AM

thanks
rk

Hi @Ramakrishna,

there is an open feature request to use a time cycle and defining a specific time.

However, there are different ways to build something similar. One way could be:

  • model a workflow with a timer start event that has a time cycle of P1D (i.e. every day)
  • deploy the workflow at 10am
  • it will create a new instance every day at 10am

Another approach might be just to use Spring Boot Scheduler to create new workflow instances every day… Do you have a requirement to have that timer in the workflow definition?

1 Like

So there is no way of specifying CRON expression in camunda workflow directly?

Hi @rajesh.joshi,

you have picked up an old post from this forum.

It’s implemented now: Timer events | Camunda 8 Docs

Hope this helps, Ingo