Setup editors and processing in Liberty
The Setup folder of the NomaUBL application in Liberty holds the editors that decide how a document becomes an invoice — the Document editor, the XSL editor, the UBL defaults, PDF to XML, the PDF templates, the Actions —, the tools that move a configuration (File versions, Promotion) and the Security and Settings pages (Settings and security). The Processing folder runs a document through all that by hand.
Each editor reads and writes through NomaUBL: what a setting means, how a stylesheet or a layout is written back, is NomaUBL's own code, so a document set up in Liberty holds exactly what NomaUBL's own page would write. NomaUBL's pages describe every field; this page describes what Liberty draws differently or adds.
Every editor of this page shares the same conventions: Discard and Save in the page header, a field changed since the last save marked, its default said under it, and a question before another file is opened or the page is left with unsaved changes.
At a glance
Document editor
Setup → Document editor — NomaUBL's Documents editor — opens on the documents as a list, one row each: its name and description, what it Reads (XML spool, Text PDF, UBL, Connector), its Direction (↑ Issued, ↓ Received), its Mapping, what it is Cut by (the burst key) and what it Adds (pre-transform, RTF layout, readable PDF, attachment, PDF template, rules, processing, enrichment). A few letters find a document, a mapping or a burst key; chips filter on what it reads and its direction. + New document and Import sit above the list.
A document opens with a bar — ← Settings, Document templates › name, Export, Copy, Remove —, its Description (shown under its name in the list, editable at any time) and NomaUBL's steps as a strip: Source, Identification, Enrichment, Rules, UBL, Output, Advanced, each saying what it holds (10 of 12 set, 3 rule(s) · 1 processing…). Every form reads top to bottom, one field per row: its label, hint and key on the left, its control on the right. Only the keys that changed are saved.
Identification as one table
The Identification step shows what fills F564230 for each document in one table, one line per field (activity, type, document number, type and company, customer, amount, dates, routing, office, processing type):
| Column | What it holds |
|---|---|
| Field | The identification field |
| Read from | From the document, Fixed value or None |
| Element or value | The element read — picked among the PDF's rules and the elements the other fields read, or typed — or the fixed value |
| Rule reading it from the PDF | The PDF rule that produces the element |
+ a value when it gives nothing adds the value used when the element is empty, as NomaUBL reads a field. Every fixed value is edited here, including those NomaUBL's own editor does not show. Activity and type say how many rules of the Rules step decide them (n rule(s) decide it ›). A sample loaded beside the table offers its elements: click a field's line, then an element. Set it up from a PDF opens PDF to XML on the document.
Rules as decision tables
The Rules step draws NomaUBL's rules as two decision tables, one line per rule in the order NomaUBL tries them — the first that matches wins, a line dragged to move it:
- Activity and type — what each rule sets; the last line, otherwise, says what applies when no rule matches (what Identification reads);
- Processing — Treat as another document type, or Exclude (recorded only, never sent).
Each line shows its name, its conditions as chips and its result. Opened, it edits its conditions — a field (JDE document type, company, invoice amount, customer number, document number, an element of the document…), an operator (in list, not in list, =, ≠, <, >, is empty, matches…) and a value — and its outcome. A rule without a condition and a result stays on the page, marked not saved until it has a condition and a result.
Try on a sample — an XML of this computer, a file of NomaUBL's server or a PDF — runs NomaUBL's own trial of the rules as edited and marks the rule that wins.
Enrichment, UBL ID and import / export
- Enrichment: the rules are a list. Where NomaUBL has a list, the editor offers it: a rule's or a connector document's Endpoint / Query among the connector's own, a connector document's parameters one line per parameter of the call picked, the rule set among NomaUBL's, the additional attachments as lines (a code, a path).
- Dry run runs the enrichment rules as edited on a sample spool (an XML, a server file, a PDF or a connector document) with the live connectors; the enriched XML is shown with NomaUBL's summary and warnings, and can be downloaded. Nothing is stored.
- UBL ID pattern: beside the field, Sample cbc:ID, Suggest (guesses the pattern from a sample number) and Test (runs the pattern and the defaults on the sample).
- Export downloads the document as saved, as a
.jsonfile (as NomaUBL exports it); Import reads one exported from NomaUBL or Liberty — created, or replacing the document of that name after a confirmation.
XSL editor
Setup → XSL editor — NomaUBL's XSL Editor — edits a document's mapping. The bar holds Mapping (a stylesheet of NomaUBL's folder), + New transform (a new mapping started from NomaUBL's template), Sample and, once a sample is loaded, Processed as. The editor works in three stages: Edit, Validate, Result.
Edit
- the mapping's groups on the left, each with how much of it is mapped;
- the picked group's fields in the middle: what each holds, its business term (BT), its path, and what that path reads on the sample — the first of how many when it repeats;
- the sample's tree on the right: a click writes its path into the field picked; outside the field's group the path goes up with
../, an element repeated under it is taken with//; - Fields or Stylesheet: the whole stylesheet in the code editor, a value changed there saved as typed.
ƒx beside a field opens its value part by part: an element, a fixed text, a sum of amounts, joined as NomaUBL joins them (two elements by a space, a text between them replacing it), each part saying what it reads, moved by dragging. A value NomaUBL would read as one piece is flagged, and written again as its parts by ƒx. Repeating values — identifiers with their scheme, attachments, item properties, classifications — are structured values edited as cards, with their conditions (Only when).
The Rule set picked says Required m / n mapped and filters the fields (All, Required and conditional, Missing required, Show fields outside the set). Map with AI reads the sample and proposes paths, each tagged new, change, replaces, not in the sample or expression; tick them, then Accept the n ticked, and check them before Save.
Sample and Processed as
Load a sample offers four sources: An XML file of this computer, A file on NomaUBL's server, A PDF, read with its document's rules (a text PDF, or a JD Edwards PDF read by NomaUBL's converter with the manifest of the folder the document watches and its invoice key) and A connector's answer (the source call of a document, with its parameters — nothing processed or stored).
One mapping may serve several documents, each with its own pre-transform or none. Processed as names the document whose processing the check reproduces: its pre-transform is applied to the sample before the mapping, and its own rules validate the UBL; — the mapping alone — checks without. With a pre-transform, the paths picked and the values shown come from the sample after it (XML read).
A sample holding several invoices is cut as a run cuts it — by the document's burst key, else the mapping's root element — and Validate and Result take one invoice at a time (Invoice n of N).
Validate and Result
Validate runs NomaUBL's check on the values being edited, not yet saved: first the required fields without a source, then the sample transformed and validated. Each finding carries its BT, the fields that feed it and what they read on the sample; Open the field › goes back to Edit on it, outlined. The count per group of the mapping opens the group. When the values, the rule set or the sample change, the stage says so and offers Run again.
Result shows the UBL the sample gives, as an invoice — seller, number and dates, references, buyer, lines, VAT and payment, totals, notes — with, beside it, the business terms the UBL holds, searchable, the check's findings first and in red; a term clicked is outlined on the sheet. The XML view and Download the UBL are one click away.
PDF to XML
Setup → PDF to XML — NomaUBL's PDF to XML — sets up how a PDF becomes the XML its mapping reads, in stages: Source (the PDF, its kind — Text PDF or JD Edwards PDF —, the document whose settings apply), Invoice and key, Identification, Lines, VAT summary and Result (each invoice's lines checked against its total).
The table of lines is set one setting at a time: a card is picked — Table header, End of the lines, Rows to ignore, the VAT summary's header, columns and rates — and the rows answer for it alone (a drag over the header's rows, a click on the row after the lines). Every row shows what the settings make of it, in its colour (Header, Line, Ignored, End…), and each pick is tried on the PDF at once. The PDF is read as Rows, Elements, The PDF or XML. Save… keeps the settings in an existing document or in a new one.
UBL defaults
Setup → UBL defaults — NomaUBL's UBL defaults — edits the values every UBL transform falls back on (ubl-defaults.xsl) and a document's own values. Editing picks the shared defaults or a document. The thirteen sections are listed on the left with what each holds — Header, Scheme IDs, Invoice type, Profile ID, Payment, Units, Currency, Document type, VAT, Allowances / charges, Item line, Suppliers, Notes —, the picked one beside: one field per row, the mappings as tables, the rules as a decision table in their order with what applies otherwise, the seller companies as cards to order (the first gives every value another lacks), the legal notes general or a company's own.
On a document, a section Follows the shared defaults (shown greyed) or is overridden (Override for this file, Remove the override); the shared value is said beside each field, marked when it differs.
Before the save, Liberty lists what NomaUBL would drop or refuse — a mapping or a rule left half done, a code twice, a SIREN, SIRET or IBAN that cannot be right, two notes of one type —, the sections concerned marked in red. The text written is read back before it is sent: nothing is sent when a value would not come back.
PDF templates
Setup → PDF templates — NomaUBL's PDF templates — edits the layouts of the readable PDF on Liberty's document designer, one template at a time, in two tabs:
- Layout: the whole page's settings in a strip (Style classic or modern, Accent, Logo, Dates, Decimals of amounts, prices and quantities, trailing zeros); the sections in print order, each saying what it shows, dragged, added, removed; the real PDF in the middle — the Sample invoice, An invoice or My UBL…, in French or English —, a section picked by a click on it, its options beside. A block is edited as it prints, with the invoice's values: parts added in plain words (a label and a value, a text with values, a list, a legal mention, an image, a line, some space) or NomaUBL's ready-made blocks (bank details, payment terms, delivery, item attributes), dragged onto a + add here; Advanced keeps the tree of parts and paths.
- Printed texts: every text the PDF prints, by part, in English and French, the default shown, a change marked and reset, another template's texts copied.
NomaUBL's own templates are read only: Copy them to change them. Make it the default and Delete act on the installation's own.
Actions
Setup → Actions — NomaUBL's Action Bindings — edits the buttons an invoice offers, each a chain of calls. Scope picks the default (every company) or a company's own, which replaces it for that company's invoices. On the left, the Platform actions (NomaUBL's seven, bound or not, the statuses each is offered on) and the Custom actions (+ Custom action); nothing is picked on arrival.
The picked action is drawn as its chain — the user's click, then each call in order —, the picked call edited below it: Connector (one of NomaUBL's API or SQL connectors), Endpoint or Query, Parameters filled from the target's own with their defaults (the { } button puts an invoice field where the cursor is; a call reads an earlier one's answer as {call.N.field}), When it fails (Stop the chain or Go on with the next call). An incomplete call is marked and refused at Save. Unbind removes every call of a platform action.
File versions
Setup → File versions — NomaUBL's File Versions — shows the files NomaUBL keeps versions of as a folder tree, found by a few letters, every folder folded. The picked file's history is beside it: the live file, the framework version an upgrade left (to review and merge), then each version with where it came from, who and why.
Two lines ticked are compared side by side; a version is restored (asked first, the current file kept as a version) or downloaded; a text file is edited live (Edit the live file, Save as a new version) or Upload a new version. The comment says who did it in Liberty. The Package mode ticks files or whole folders to Export as a ZIP, or Import a ZIP… after a confirmation.
Promotion
Setup → Promotion — NomaUBL's Promotion — moves templates, lists, jobs, connectors and settings to another NomaUBL instance, in three modes:
- Build and promote: the items by kind, found by a few letters, a kind ticked whole; what each takes along (the items it names, its files) is ticked with it and said. Beside, the selection, the Target instance (from Promotion targets), what to do with what the target already has (Replace with mine, Keep theirs, add new only) and a Comment. Check on … gives the target's plan first — new, changed, identical, skipped, only there, a changed item's differences key by key —, nothing written; Promote then writes, after a confirmation. Download as a package saves the selection.
- Import a package: a package exported by another instance, read first (its plan), applied after a confirmation.
- History: every export, import and push with its plan.
The page says what never travels: passwords, secrets, tokens, API keys, the licence, URLs, hosts, users and the environment's own settings.
Processing
The Processing folder runs NomaUBL's processing by hand, each task drawn as its stages; NomaUBL answers when the work is done.
| Entry | Stages | NomaUBL page |
|---|---|---|
| Process | Template, File (from this computer or NomaUBL's server) or Parameters of a connector's call, Options (mode, send to the platform, Replace existing, Repair, Timings, Validate only on a UBL template), Result | Process Document |
| Extract and process | Source (NomaUBL's archive, The JD Edwards server, BI Publisher), Invoice (document, type and company, or report, version and job), Template, Options, Result | Extract and Process |
| Validate only | What (A UBL, A source XML, A source PDF — text or JD Edwards, read through its document), File, Result — nothing stored | Validate |
| Extraction → Archive, JDE server, BI Publisher | An invoice's XML or UBL written to a folder; a UBE's output downloaded over SFTP; a BI Publisher job's input and outputs | Extract Archive, Extract FTP, Extract BIP |
Validate only gives the findings per invoice: NomaUBL's log is cut by invoice, the invoices listed with their counts (or valid), the picked one's findings beside, the run's own lines apart (The run). The counts, Copy and Export cover the whole file.
The JD Edwards server, BI Publisher and the JD Edwards PDF read JD Edwards' outputs and tables. A BI Publisher job processed through an XML template is marked as taken in JD Edwards, as NomaUBL's settings say; the Extraction pages change nothing in JD Edwards.
Access
- The E-invoicing developer role gives the Setup editors that make a document an invoice — Document editor, XSL editor, UBL defaults, PDF to XML, PDF templates — and the Processing pages, without NomaUBL's settings.
- The E-invoicing administrator role gives everything, Actions, File versions, Promotion, Security and Settings included.
Every save and every run is written to Liberty's log with who made it; NomaUBL records Liberty's account.
Tips & best practices
- Load a sample first. The Rules, the Identification table and the XSL editor all read better on a real sample: each field says what it reads.
- Validate before saving a mapping. The Validate stage checks the values being edited; Save afterwards.
- Pick Processed as. When one mapping serves several documents, check it as each of them: their pre-transforms and rule sets differ.
- Check on the target before promoting. The plan shows what a promotion would change, key by key, before anything is written.