Skip to main content
August 23, 2021
Solved

Timer execution exact hours

  • August 23, 2021
  • 4 replies
  • 0 views

Hello,

We have to put a timer in the start node of a process so that it only runs between this range of hours from 4:00 AM to 6:00 AM and within that range every 15 minutes.

This is the configuration we have:

The problem we are having is that it does not run at the exact times, that is, it does not run at 4:00, 4:15, 4:30 but it runs depending on of the time of publication of the process, if for whatever reason we have published it, for example at 3:50 AM, it is executed at 4:05.

Do you have any idea so that the publication time does not affect and runs at the exact times?


A greeting and thanks in advance

    Best answer by selvakumark

    Hi,

    You can write an expression that will return the number of minutes to delay the process and configure it in the scheduled delay part.

    For example, the process is published at 3.50 AM, then the expression should return 10 minutes as output so that the process waits for 10 mins and then triggers at 4 AM.

    4 replies

    selvakumark
    Participating Frequently
    August 23, 2021

    Hi,

    You can write an expression that will return the number of minutes to delay the process and configure it in the scheduled delay part.

    For example, the process is published at 3.50 AM, then the expression should return 10 minutes as output so that the process waits for 10 mins and then triggers at 4 AM.

    August 23, 2021

    Hello good!!,
    Thanks for your contribution but I think this
    Solution I think it would not be valid because we do not know what time they are going to publish the process, I put 3:50 but it could be that it was 3:20 so the 10 minutes would be worth it.

    selvakumark
    Participating Frequently
    August 23, 2021

    I think you got the context wrong. I suggested creating an expression based on the now() function. Whenever the process model gets published, this rule will be called - so we can calculate the time delay.