Skip to main content
October 18, 2023
Question

Delay process model to start exactly at 00 clock

  • October 18, 2023
  • 2 replies
  • 0 views

Hi Team,

I need to set a delay to the process model to trigger exactly at 00 clock. Example: If I am publishing a model at 10:36 the delay should be at 11:00 or if I'm publishing at 11:00 it should be at 11:00 itself).
The requirement is simple : we keep the time recurrence at an interval of 1hr. So to maintain a proper interval gap, I planned to execute this in the delay, so that for the next time recurrence will be at 00 clock.

I need help in this case.

Thanks in advance 

    2 replies

    stefanhelzle0001
    Brainy
    October 18, 2023

    This snippet calculates the next full hour:

    now() + minute() * (60 - minute(now()))

    It should get the delay you are asking for. I did not test this and timers can be picky about dynamic calculations, but give it a try. I did not get an error message when I published the model.

    October 19, 2023

    Thank You Stefan