System Notification:
The EnhancementUtils_SystemNotification node is designed to enhance your workflow by sending a browser notification when execution reaches this node. This feature is particularly beneficial for long-running workflows, as it allows you to be notified of completion without needing to constantly monitor the process. By leveraging the browser's Notification API, this node provides a seamless way to receive system-level alerts, ensuring you are promptly informed when your tasks are done. The node supports two modes of operation: "always," which sends a notification every time the node is executed, and "on empty queue," which only sends a notification when the queue is empty. This flexibility allows you to tailor notifications to your specific needs, making it a valuable tool for managing and optimizing your workflow.
System Notification Input Parameters:
message
The message parameter allows you to specify the text that will appear in the notification body. This is the message that will be displayed to you when the notification is triggered. By default, the message is set to "Your workflow has completed." You can customize this text to provide more specific information about the workflow or task that has been completed. There are no minimum or maximum values for this parameter, as it is a string input.
any
The any parameter is a passthrough input that can accept any type of data. This input is used to trigger the notification and pass the data through the node unchanged. It acts as a conduit, ensuring that the data continues to flow through the workflow while simultaneously triggering the notification. This parameter does not have specific options or default values, as it is designed to be flexible and accommodate any data type.
mode
The mode parameter determines when the notification will be sent. It offers two options: "always" and "on empty queue." The "always" option ensures that a notification is sent every time the node is executed, regardless of the state of the queue. The "on empty queue" option, on the other hand, only sends a notification when the queue is empty, which can be useful for workflows where you only want to be notified once all tasks are complete. The default value for this parameter is "always."
System Notification Output Parameters:
passthrough
The passthrough output parameter is designed to pass the input data through the node unchanged. This means that whatever data is received by the any input is outputted exactly as it was received. This functionality is crucial for maintaining the integrity of the data flow within your workflow, ensuring that the notification process does not interfere with the data being processed. The passthrough output allows you to seamlessly integrate notifications into your workflow without disrupting the existing data pipeline.
System Notification Usage Tips:
- Customize the
messageparameter to include specific details about the workflow or task, making the notification more informative and relevant to your needs. - Use the
modeparameter to control the frequency of notifications. Choose "always" for frequent updates or "on empty queue" for a single notification when all tasks are complete.
System Notification Common Errors and Solutions:
Notification permission denied
- Explanation: The browser may block notifications if permission has not been granted.
- Solution: Ensure that you have allowed notifications for your browser. You may need to adjust your browser settings to permit notifications from the site running the workflow.
Notification not appearing
- Explanation: The notification may not appear if the browser's Notification API is not supported or if notifications are disabled.
- Solution: Check if your browser supports the Notification API and that notifications are enabled. Consider updating your browser or switching to a supported one if necessary.
