Notifications in Liberty
NomaUBL's notification rules tell people when an invoice reaches a status — in the portal's inbox, by e-mail — and can call a connector. In Liberty, Daily → Notifications is each user's inbox, and IT → Notification rules is where the rules are written and tried.
What a rule does and which names a message may use is documented in NomaUBL: Notifications and Notification Rules. This page says what differs in Liberty.
At a glance
The inbox
Daily → Notifications opens the inbox as a mailbox (the Reader view): the notifications grouped by day, the newest first, the unread ones marked; the one picked is read beside the list. The list reads itself again every 60 seconds (Live). Table and Chart show the same notifications as a grid or a chart.
| Part | What it shows |
|---|---|
| Chips | All, Unread, An action failed, and one chip per status, each with its count. |
| A line | The subject, the time and the rule, the status as a tag. |
| The notification read | The invoice (DOC, DCT, KCO), the Reason, the Expected action, Notified on, the Rule, For whom; then the Message, the Status message and What the rule's actions did — each call with its outcome. Tags say whether it is unread, whether an action failed, and whether it was sent to everyone. |
Opening a notification marks it read. Its menu offers Mark read, Open the invoice (when it names one) and Dismiss — deleted in NomaUBL, after a confirmation. Mark all read marks the whole inbox.
Whose inbox
NomaUBL keeps one inbox per NomaUBL user. When the acting user is set up, each Liberty user reads his own inbox and the notifications sent to everyone; a notification for everyone that he reads or dismisses is so for him alone. Without it, every user reads the inbox of Liberty's own account, and Dismiss deletes the notification for everyone.
Notification rules
IT → Notification rules lists the rules on the left, each with what it does and how it fared — its statuses, how it tells (portal, e-mail, calls), how many times it fired, last call failed when its last call failed, On or Off. A few letters in Find a rule, a status… narrow the list. Nothing is picked on arrival: + New rule, or a rule picked, opens it.
The rule as a sentence
The picked rule is first read as one sentence — WHEN an invoice becomes 210 or 213 for any reason, TELL everyone in the portal and by e-mail (PDF attached), THEN call … — with what is still missing outlined in red. Its Description and Active sit above; then four stages, each saying in a few words what it holds:
| Stage | What is set |
|---|---|
| When | The Statuses that fire the rule, the Reasons (none picked: any reason), the Invoices: issued, received or any. |
| Who | One card per way of telling. In the portal: Nobody, Everyone, A user or A role — the bell of NomaUBL's users. By e-mail: one address a line (none: the e-mail of the user or role above), and Attach the invoice PDF. |
| Message | The Subject and the Text; blank, NomaUBL's default is used and shown. { } puts a name ({doc}, {statusLabel}…) where the cursor is. |
| Then call | Calls in order, each an API or SQL connector of NomaUBL with its endpoint or query, its parameters filled from the target's own defaults, and When it fails: Stop the following calls or Go on with the next call. A call reads an earlier one's answer as {call.N.field}. |
A rule may tell nobody and only call: its calls run whenever it fires. Save and Discard sit in the page header; leaving a changed rule asks first. Copy and Delete act on the rule by its name (letters, digits, dot, dash and underscore, 80 at most).
Try a rule
Beside the rule, Try plays the saved rule on a real invoice — nothing is sent. Pick the Invoice and, if needed, As if it became a status; the answer says whether the rule fires or not and why, the e-mail as it would go (to, subject, attachment), the portal's users it would reach, and each call with the values it would send.
Send it for real… fires the rule on that invoice, after a confirmation: the e-mails are sent and the calls are made.
Access
The inbox is given to the reader, operator and administrator roles. The Notification rules page belongs to the administrator role — see Roles.
Tips & best practices
- Set up the acting user before opening the inbox to users, so that everyone reads his own notifications.
- Try a rule before switching it on. The try uses the saved rule: save, try on a real invoice, then set Active.
- Use the inbox chips — Unread, An action failed — to work through what is left.