The ItemValidation collaboration template can enable notification if an item is rejected by business policy rules or if errors are detected during processing.
You must configure the SEND_MAIL_ON_ERROR and ERROR_EMAIL_ROLE properties. If an error is detected and the SEND_MAIL_ON_ERROR and ERROR_EMAIL_ROLE configuration properties exist and are not BLANK, the collaboration object stores the values of the ERROR_EMAIL_ROLE, ERROR_EMAIL_MSG, and ERROR_EMAIL_SUBJECT in attributes of the Retail_Item business object. The Retail_Item attributes into which these values are stored are identified by the EMAIL_ROLE_ATTRIBUTE, EMAIL_MSG_ATTRIBUTE, and EMAIL_SUBJECT_ATTRIBUTE configuration properties, respectively. Then the collaboration object sends the object to its Notify port.
If the ERROR_EMAIL_ROLE property exists but is BLANK, no notification is executed (that is, no default mail recipient exists). If the REJECT_EMAIL_MSG, REJECT_EMAIL_SUBJECT, ERROR_EMAIL_MSG, or ERROR_EMAIL_SUBJECT properties exist but are BLANK, default values are placed in the Retail_Item attributes before the business object is sent to the Notify port.
Enabling notification if an item is rejected by business policy rules
Notifying of item rejection due to business policy rulesEnabling notification if errors are detected during collaboration processing
Notifying if errors are detected during collaboration processing
Parent topic: Overall process logic