Business Rules
Business Rules
Business Rules
This introduction explains how business rules work and their benefits over other
types of coding components.
All business rules have the following characteristics:
When to Run:
o When: type that determines when they run in relation to database
operations (e.g. Before, after, async and display)
o A list of database operations that can trigger them (e.g. Insert, Update,
Delete, and Query)
Action: This tab can do one or more of the following
o Set one or more field values
o Display a message
o Abort the current database operation
Advance: Run custom code
Developers typically use custom code in business rules to:
Perform database operations, such as querying for a list of records
Check for complex conditions
Check for dynamic values
Display information to the user, such as validation errors
Change field values, such as changing the incident state from resolved to
closed
Use a
Type
Before
After
Async
Runs
After the user submits the
form but before the record
is inserted/updated in the
database.
After the user submits the
form and after the system
takes action on the record
on the database.
As an asynchronous
scheduled job in the
Use to
Validate data before
inserting or updating into
the database.
Perform calculations or
business logic on data,
such as updating totals or
counts.
Perform calculations or
business logic on data in
Display
Click Submit.