Connecting Liberty to NomaUBL
Liberty calls NomaUBL through its HTTP API, with an account of its own. This page is for the administrator who sets the link up: where NomaUBL's address and Liberty's account go, how each user reads his own notifications, how several NomaUBL environments are offered, how the Data Explorer reaches NomaUBL's tables, and which roles to give.
The connector nomaubl is delivered set up: what an installation fills in is the pool that names each NomaUBL server, and the account Liberty uses in it.
At a glance
The server and Liberty's account
Each NomaUBL environment is a pool of type HTTP server (an API), under Liberty Next → Administer → Pools — see An HTTP server. The delivered pool is named nomaubl.
| Field | What to enter |
|---|---|
| URL | NomaUBL's address. Behind NomaUBL's hub, the environment's address: https://srv-a/<environment>/. |
| Account | The NomaUBL account Liberty signs in with — a local NomaUBL user created for Liberty. |
| Password | That account's password. It is encrypted when saved. |
| Signing key | The secret shared with NomaUBL so that each user reads his own inbox — see Each user's own inbox. |
| Verify SSL | On, unless NomaUBL's certificate cannot be checked from the Liberty server. |
The connector signs in on NomaUBL's login route (OAuth2 / JWT, endpoint path /api/auth/login), keeps the session for seven hours and signs in again when NomaUBL refuses it — nothing to set there. Its settings are under Liberty Next → Data → Connectors → nomaubl — see The server of an API connector.
The role of Liberty's account in NomaUBL
NomaUBL checks what Liberty's account may do. Give that account, in NomaUBL's Roles, a role that grants what the application offers: reading the invoices, and the invoice actions — resend, edit, review, status, e-mail, validate, delete, delete a lifecycle event. An action the role does not grant is refused by NomaUBL, and the refusal is shown in Liberty as NomaUBL words it.
What NomaUBL lists — invoices, companies — is what this account may see in NomaUBL. Liberty then decides, user by user, which menu entries and actions are offered (see Roles).
NomaUBL records every action under Liberty's account. Where an action carries a text — a status reason, a note — Liberty adds the name of the Liberty user who did it: [JSMITH via Liberty].
Each user's own inbox
NomaUBL keeps one notification inbox per NomaUBL user. To let each Liberty user read his own inbox, Liberty names the signed-in user to NomaUBL on the notification routes, in a short-lived token signed with a secret both sides share. Three settings:
- In NomaUBL — Settings › Global › Authentication: Acting user secret (see Global); and on the role of Liberty's account, the right Act for a user (see Roles).
- In Liberty, on the pool — the same secret in Signing key. The connector's Acting user section already names NomaUBL's header,
X-Acting-User. - For each user — under Liberty Next → Administer → Access → Users, Accounts on the applications: his NomaUBL user name, when it differs from his Liberty name (blank: his Liberty user name). See Users.
Without the secret, every Liberty user reads the inbox of Liberty's own account. A nomaflow job names nobody: it works as Liberty's account.
Several environments
One application serves every NomaUBL environment of the installation — production, test, training. Each environment is one server pool, attached to the nomaubl connector; each user then picks the environment under the application list, and every screen, dashboard and action of NomaUBL follows that choice — see The environment picked under the application list.
The simplest way is NomaHub: on NomaHub → NomaUBL, an environment of the hub is attached with Attach to NomaUBL (Liberty's account in it, its password, its acting user secret) — the pool is written and bound to the connector. See NomaUBL environments and Each application's environments.
Without NomaHub, the same is done by hand: a pool per environment under Pools, then each pool added on the connector's Environments tab — see One server per environment.
The Data Explorer's database
The Data Explorer reads NomaUBL's tables in place, read only, through a second pool: nomaubl_db. Point it, under Pools, at the database where NomaUBL keeps its tables — usually JD Edwards' own — with an account that may only read (SELECT).
| Stage of the pool | What to enter |
|---|---|
| Schemas | NOMAUBL: the schema of NomaUBL's tables (F564230 to F564253). JDE: the schema of JD Edwards' address book, receivables and payables (F0101, F03B11, F0411); left out, the same schema as NOMAUBL. |
| Database links | JDE: when NomaUBL has its own Oracle database, the database link that reaches JD Edwards' tables. |
When NomaUBL's database cannot reach JD Edwards' at all (no shared database, no database link), the nomaflow job Copy JD Edwards' tables for the Explorer copies the columns the Explorer reads from the jdedwards pool into the schema JDE of nomaubl_db. Before running it:
- map
JDEon the pool to a schema of its own in NomaUBL's database — never JD Edwards' data schema; the job stops until it is mapped; - give the pool's account, on that schema only, the rights to create tables, insert, delete and read.
Run the job once, then switch on its Every night schedule (02:00, off as delivered). The address book is read whole; the receivables and payables only for the rows changed since the last run. Copy JD Edwards' tables for the Explorer (whole) reads them whole on Sundays (03:00, off as delivered).
Roles
Four predefined roles come with the application. Add them under Liberty Next → Administer → Access → Roles → Add a predefined role… (see Predefined roles), then give them to the users.
| Role | What it gives |
|---|---|
| E-invoicing reader | The overviews, the invoices and the documents, an invoice whole, the e-directory, the Data Explorer, the release notes and the e-invoicing references. Changes nothing; not the IT dashboard. |
| E-invoicing operator | What the reader reads, and the actions on an invoice or a selection: resend, reprocess, review, status, fix the buyer, e-mail, NomaUBL's actions. |
| E-invoicing administrator | Everything the application offers on NomaUBL: the IT dashboard and its recoveries, the jobs, the setup editors, the settings, deleting an invoice. |
| E-invoicing developer | How documents become invoices: the document templates, their XSL mappings, the processing tools to try them, the diagnostics. Not NomaUBL's settings. |
Each action is offered only to the users whose role allows it, and NomaUBL checks it again with the role of Liberty's account.
Tips & best practices
- One NomaUBL account for Liberty per environment, used by nothing else: its history then reads as "done through Liberty", and its password can be changed without disturbing anyone.
- Set the acting user up from the start. Users then see their own notifications, and a broadcast read or dismissed is so for them alone.
- Attach environments from NomaHub rather than by hand: the pool, its secret and the connector stay consistent.
- Keep the Data Explorer's account read only. Only the copy of JD Edwards' tables needs more, and only on its own schema.