Our Business Process has a restriction wherein it must not be allowed to run during payroll processing periods for our company (Mon-Wed every other week).
As the process has been setup with the scheduler to deploy on an hourly basis Monday-Friday (and the option of using the Calendar to enforce this restriction seemed limited as it appeared that a calendar would need to be granularly created), I've opted to insert logic at the beginning of the process where it will loop through a collection populated with the dates on which the process must not be allowed to run. If "Today" matches a provided collection date, the process immediately goes to "End". If not, it continues.
The business would like to have the option to manually deploy the process (essentially overriding the aforementioned date evaluation logic), and I believe we can use Session Variables to our advantage, but am not quite certain how (or if there may be a better way to design a solution to this distinct business need that doesn't require this logic or Session Variables).
Is there a recommended methodology that would allow for a process to be manually deployed in this manner, overriding the evaluation of the current date, using Session Variables or some other design-related solution?
Thank you kindly for your time and consideration!