You can send notifications from PlatformManager directly to a specific logic defined on a partition. This allows you to further process the alert data received from PlatformManager.
Configuring Notifications to Trigger Partition Logic
When creating or editing a notification rule:
-
Navigate to Account > Notifications > Notification Rules.
-
Click New Rule or select an existing notification rule to edit (three-dot menu > Edit).
-
Fill in the necessary fields such as Name, Account, Workflow, Trigger by, Email, and Webhook.
-
Scroll down to the Trigger logic section.
Trigger Logic
-
Partition: Select the partition that contains the logic you want to trigger upon notification.
-
Logic: Choose an existing logic from the selected partition you want to call. All alert data are sent to the logic when a notification is created.
Example:
For example, when a workflow is triggered and finishes with the SUCCESS status, then a notification is created and all notification data is passed to the logic through a user input alert-data.
Below is an example logic that processes the alert-data and stores alert data into a Company Parameter table in the JSON format:
def entry = api.userEntry("alert-data")
def record = [
lookupTableName : "CP_test",
key1 : new Date(),
key2 : entry
]
api.add("JLTV2", record)
return entry
Notifications are processed in real-time, immediately calling the selected logic upon meeting defined conditions.