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 item list rows
The rule returns number of rows of given item list form field.
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 1FROM 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
Path was used
The rule returns whether the instance has passed the given path.