When setting the starting rule type as a schedule for a workflow, is there way to exclude holidays as defined in the Workflow Administration Console?
Thanks in advance.
When setting the starting rule type as a schedule for a workflow, is there way to exclude holidays as defined in the Workflow Administration Console?
Thanks in advance.
This post https://answers.laserfiche.com/questions/49889/How-can-you-Exclude-Weekends-and-Holidays-from-Date-Token-Calculator has some ideas about how to identify holidays inside the workflow. In your case, you would probably want to put a condition and the start of your workflow, and if you correctly identify the day as a holiday, you can use an End Workflow activity to stop the workflow. Alternatively if you'd like to postpone it you could use a Delay (and a Date Token Calculator).
Unfortunately not. The scheduler is based on Windows Task Scheduler, so there is no way to add exception days.
Thanks for your reply.
So is there any other way to stop the Workflow from running if that day happens to land on a public holiday?
Based on this thread I modified an earlier custom workflow activity to determine if a date value provided is a holiday or a workday based on the Workflow Server Holiday and Weekday settings. The activity will allow you to create multiple date tokens and evaluate whether or not the dates provided are holidays or workdays. Here is a screenshot of a bare-bones workflow;
A shot of the token editor screen;
The activity can expose two tokens for each date value (depending on which options are checked) that you can use in conditional workflow logic;
The custom workflow activity has been tested on Workflow 9.1 and 9.2. The activity is a free download on the products page at www.qfiche.com. The download is a fully functional 30-day demo. Once the activity has been installed and evaluated you can register to receive a free license key to unlock the activity for full production use. Any questions can be directed to cprimmer@qfiche.com
You can also create stored procedures in SQL to populate the holiday dates into a database and workflow to trigger updates.