Configure the notification to run a response script when the delivery of a notification is successful. Defaults to false.
This can limit node performance. Set this value to true only if you need to execute custom behaviour when successful delivery events occur.
@notification::setHandleDeliveryEvents(Boolean state)
(Boolean) state:specifies whether the notification should run a response script when a notification is successfully delivered; default is false.
None
This script illustrates using setHandleDeliveryEvents:
# Configure system to run a response script
@notification::setHandleDeliveryEvents(TRUE)