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
Discussion posts and replies are publicly visible
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.
Hello good!!,Thanks for your contribution but I think thisSolution 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.
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.
All right, excuse me that at first I did not understand you well, I have made a rule that will subtract the current minutes from the rooms and put that delay.I'm still testing but I think this will work for all cases.
Thank you very much for your answer!