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
I don't think the advanced options are going to help you in this case. For context, the expression in that condition gets evaluated once: it doesn't keep evaluating until the current date and time is greater than what you provided.
Instead, I'd suggest just putting that condition into the scheduled delay section:
Also keep in mind that there isn't really a "stop" option in a process, so you would likely create a parallel flow that goes to this timer. Then, when the timer is triggered, it should go straight to a terminate end node to stop the process.