Use universal global business rules in your processes. Using the working days calendar in WEBCON BPS.
WEBCON BPS allows you to define non-working days in your organization. Thanks to this, we can use standard functions such as performing timeouts only on business days. Another standard feature is displaying on SWE reports, how many business days a given workflow instance is in the current step. You can read about it in the article: Working days calendar in WEBCON BPS.
In this post, I would like to present to you 3 ready-to-use business rules that you can use in all processes! What can you use them for?
Note: In the example I described, SQL functions are created in the WEBCON BPS content database. This is not recommended by the software developer. Creating custom objects and tampering with the WEBCON BPS database may result in the manufacturer’s warranty loss. I recommend creating these functions on a separate SQL database.
The following function checks whether the date indicated is a business day. Returns 1 when the checked date is a working date. Otherwise, it returns 0.
The following function counts the working days in the indicated date range. Edge days are also included.
The following procedure returns the date of the next business day after the specified number of days. The number of days can be positive or negative. If the number is positive, the function returns the next business day. If the number is negative, the function returns the day preceding the day(s) off.
After creating the above functions, it’s time to create parameterized business rules that will make use of them. Below are presented all of them.
Below I show how to configure form fields using my business rules. Of course, this is just an example. You can use these rules anyway you like.
Thanks to these three business rules, you’ll be able to create more comprehensive business solutions. In addition, once prepared, they can be used in all processes you create and save your time.
If you have any questions, feel free to ask them in the comment section.
Featured image Designed by Ibrandify / Freepik
WEBCON BPS local groups management using simple process. Adding and removal of multiple group users…
The article describes how to use the FOR EACH ROW form rule in practice on…
A video tutorial on how to set up a WEBON BPS home laboratory from scratch…
How to use the OPENJSON tabular function to handle a data import to WEBCON BPS…
How to configure and use REST Web Service connections using WEBCON BPS Authentication. Examples of…
How to upgrade standalone version of WEBCON BPS 2020 to 2021. The article describes the…
View Comments
Bardzo przydatny post, dzięki