Abort a database action in a before business-rule

In a before business rule script, you can cancel or abort the current database action.

In a before business-rule script, you can cancel or abort the current database action using the current.setAbortAction(true) method. For example, if the before business rule is executed during an insert action, and you have a condition in the script that calls current.setAbortAction(true), the new record stored in current is not created in the database.