REPORT ERROR Action
The REPORT ERROR Action causes Aware IM to stop executing rules and issue the specified error message to the original requestor (typically the error message is displayed on the user’s screen). For example,
REPORT ERROR 'Value of the attribute is not defined'
This action is typically used to validate attribute values, for example:
If Account.Balance < 0 Then REPORT ERROR 'Account balance cannot be negative'
NOTE: the action stops execution of any rules triggered by the initial request to the system (unless there are process failure rules defined – see other notes). If the request was issued by the user the specified error message is displayed on the user’s screen. If the request did not originate from the user interface (for example, the request originated from a scheduled process) the error message is written into the log and the current process is terminated.
NOTE: The request that eventually caused the REPORT ERROR action could have changed a number of objects and attributes prior to the execution of the REPORT ERROR action. All changes to the business objects and their attributes prior to the REPORT ERROR action within the context of the request are discarded when the REPORT ERROR action is triggered (unless there are process failure rules defined – see the next note). See the Rules and Transactions section for more details.
NOTE: If evaluation of rules that caused execution of REPORT ERROR action was initially triggered by a process and this process had failure rules attached to it, the changes to the business objects and their attribute prior to the REPORT ERROR action are not discarded. Instead process failure rules are evaluated and the execution of the process continues – see Process Failure Rules.