setAbortAction()
This method is one that's most commonly used inside of business rules to abort whatever database action was being performed that triggered the business rule to fire.
There are other ways to prevent certain database actions (Data Policies and ACLs, for example), but this allows you some finer-grain control over how and when it happens. For example, you might write a script in a business rule which checks several conditions - even conditions based on external records or system properties - and determines whether to abort the database action based on that.
The setAbortAction() method accepts one argument: a boolean. Whatever this method was last called with when the script finishes running, will determine whether the database ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access