SBM AppScript Reference → Introduction to SBM AppScript → SBM AppScript Contexts → Other Contexts → Notification Context
Notifications are often used to send e-mail when a given condition is met. However, instead of sending e-mail, the notification mechanism can call a script. For example, the Notification "any item changes state" may run a script for any state change in the workflow. Notification scripts lend themselves to integration with other applications because they can call external applications to import and/or export data when various SBM events occur.
If a notification script writes a non-empty string to Shell.RedoMessage, it is considered to have failed. The notification is retried until the script succeeds or the maximum number of retries is reached.
Notification scripts run once per subscriber, with Shell.User equal to the subscriber. If there are no subscribers, the script runs once with Shell.User equal to the global constant Nothing. This differs from all other contexts, in which Shell.User is the currently authenticated user.
Copyright © 2007–2018 Serena Software, Inc., a Micro Focus company. All rights reserved.