Business rules

Global business rules – ready-to-use examples


Several ready-to-use examples of global business rules that you can create once and use in everyday work with WEBCON BPS when creating and developing business processes.

Count attachments

The rule returns number of attachments of given category (all category if ‘ALL’ parameter is passed).

Count attachments – business rule configuration
Count attachments – business rule example usage

Count item list rows

The rule returns number of rows of given item list form field.

Count item list rows – business rule configuration
Count item list rows – business rule example usage
Attachments & item list count business rules
application example

Instance was in step

The rule returns information whether the instance was in the given step or not.

Caution: Note that in my business rule, the current step is not treated as a step where the instance has already been. If you want it to be treated as such, you must remove the restriction from the SQL query.

IF EXISTS(SELECT 1
FROM   wfhistoryelements
WHERE  wfh_orgid = {WFD_ID}
AND wfh_stpid = {BRP:16}
AND wfh_version < (SELECT wfd_version
FROM   wfelements
WHERE  wfd_id = {WFD_ID}))
SELECT 1
ELSE
SELECT 0
Instance was in step – business rule configuration
Instance was in step – business rule example usage

Path was used

The rule returns whether the instance has passed the given path.

Path was used – business rule configuration
Path was used – business rule example usage
Business rules
application example

nedza.kamil

A graduate of the AGH University of Science and Technology in Krakow. When not involved in the creation and optimization of business processes, he plays board or computer games. He also is interested in using game mechanics (gamification) in real life and business. Spends the evenings creating and prototyping amateur games based on the UNITY engine.

Recent Posts

Managing local WEBCON BPS groups

WEBCON BPS local groups management using simple process. Adding and removal of multiple group users…

3 years ago

Using the FOR EACH ROW form rule in practice

The article describes how to use the FOR EACH ROW form rule in practice on…

3 years ago

Create your own WEBCON BPS Express laboratory from scratch.

A video tutorial on how to set up a WEBON BPS home laboratory from scratch…

3 years ago

JSON nested collection handling in WEBCON BPS

How to use the OPENJSON tabular function to handle a data import to WEBCON BPS…

3 years ago

REST Web Service Connections – WEBCON BPS Authentication

How to configure and use REST Web Service connections using WEBCON BPS Authentication. Examples of…

3 years ago

Upgrade WEBCON BPS Express from 2020 to 2021

How to upgrade standalone version of WEBCON BPS 2020 to 2021. The article describes the…

3 years ago