I am working on a process model and it needs to stop at a certain time (For example 2PM CST)
However, I don't see any option to do it. I've tried working on the advance options but it seems like that doesn't satisfy it as well.
This was the condition that I put in Advance Options
now() < local(fn!todate(today()), timezoneid()) + 30/24
Any suggestion is welcome.
Discussion posts and replies are publicly visible
Every half hour, check to see if your time is before 2 PM and after whatever time the processes start in the morning, only run if the condition you check every half hour returns true.
Yes, sounds like the OP was on the right track here initially but the expression needs adjustment. You should definitely be able to handle this as intended in the Timer Event Advanced Options. We use either constants or time checks under Advanced Options in just about all of our scheduled processes.
Since this is a system-ran scheduled process, if you are stopping based on a static time zone (adjust the hour if the server is on a different time zone) this should do it if you wan to stop processing say 2 PM to midnight:
not(hour(local(now()))>=14)
You need to provide an exception flow with scheduling time as per your requirement.