Business Exceptions

Business exceptions are exceptions that occur outside of the main flow of your process. Unlike system exceptions, business exceptions are implemented as part of your business process model. However, they are handled as exceptions because they fall outside of the main flow. A credit score check, for example, could be handled as a business exception.

Business exceptions allow you to create cleaner processes and allow you to define exceptional situations of the process as true exceptions.

Business Exceptions and the Catalog

Business Exceptions must be defined as BPM Objects within the Catalog. They behave like other BPM Objects and can contain methods, attributes, and presentations. They can be used anywhere within a process.

Throwing a Business Exception

Within a PBL program, you can manually throw a Business Exception usng the throw keyword as in the following example:
if creditScore > 700 then
 create scoreTooLow ex = ScoreTooLow()
 ex: value = scr
 throw ex