Methods to Add Checks and Abort Changes
- Last UpdatedFeb 13, 2023
- 1 minute read
All of the Before … methods can be used to make additional checks and can abort the operation by returning an error message, such as to prevent a status change if a particular condition is not met. A variable has been provided for this purpose, for example,
!returnMessage =
|Status error: You may not delete a controlled object|
By default, the only check made in the statusProjectHandler is to prevent a general user from deleting a controlled object.