cancel
Showing results for 
Search instead for 
Did you mean: 

Date and time check

WillemNel
Level 3
Good Day

Just wondering if their is anyone that will be able to assist.Still a bit new to developing.
I need to do a date and time check in a process.
I need to check if the date and time if older that 48 hours excluding weekends and public holidays and if so the process should go on and if the not it should have an business exception.
So I have the collection that has the date and time on it as a data item and will use the date of the specific date the process will run as my start date.
For example:
21/01/2020 07:55am (Today - Tuesday) now I need to check if the date and time on the collection items date and time is 48Hours ago.
Date items details as follow one is 20/01/2020 08:00am (Monday) and should be exception and the other one is 17/01/2020 09:00am (Friday) and should also be exception as the weekend must be excluded and the last data item is the 16/01/2020 07:30am and the process should continue as more that 48Hours.

Thanks


------------------------------
Willem Nel
------------------------------
1 REPLY 1

Hi William,

The simplest way to define your rules about weekends/public holidays etc. would likely be to use the 'Calendar' feature within Blue Prism.

These can be configured within the "System > Calendars" section of the client, and additional information is available within the in-product help in a section called "Blue Prism Calendar Configuration".

From within Process/Object studio you can perform various actions/calculations based on these calendars using the 'Calendars' VBO - details on how to obtain this are available here:

Where can I find the Utility - Calendar VBO?

You may also want to consider whether some part of this logic can be moved into a Schedule, which can be used to execute a process based on a Blue Prism calendar:

Blue Prism - Guide to the Scheduler

Another option might be to use work queue items to represent each of the pieces of work that you are doing. Work queue items can be deferred using the "Defer" or "Add to Queue" actions of the "Work Queues" business object, meaning that your process will not pick them up and begin working them until the 'deferred' date has passed.  Details on this are available within the following guide on page 18 onwards:

Blue Prism - Advanced Work Queues Guide

------------------------------
James Roberts
------------------------------