Interfaces
An interface brings data from one database to another. It reads a source — a table with its joins, or a query of one's own — from one pool, transforms each column by a rule or takes it as it is, and writes the rows to a target table, on the same pool or on another one. It is built on one page, drawn as its flow, previewed without writing anything, run from the page, and scheduled in a Nomaflow job.
Access: Liberty Next → Build → Interfaces, for superusers.
At a glance
The list of interfaces
The left column lists the interfaces by name, each with where it reads and where it writes — crm.CONTACTS → dwh.contacts; a source written as a query shows query in place of its table. As soon as one interface names an Application, the list is grouped by application, those without one under No application. A click opens the interface on the right.
| Button | What it does |
|---|---|
| New interface | Asks for its name — what it copies, and where to — and adds an interface reading and writing the default pool, to fill in. Its identifier is made from the name: lower case, letters, digits and _. |
| Discard | Goes back to the interfaces as last saved. |
| Save | Saves every interface. An incomplete one is not saved: it is selected and the page says … is not complete: see what it lacks below. |
| 🗑 (beside Run now) | Deletes the interface, after a confirmation; the deletion is written at Save. An interface a job runs is not deleted: the page names the jobs — … is run by the job … : remove that step first, then delete the interface —, and Save refuses its removal as long as a job step runs it. |
unsaved changes shows beside the buttons as long as something is not saved; leaving the page then asks first.
Above the flow, Name and Description say what the interface copies, and where to. Application ties it to an application — picked among the connectors and the applications other interfaces name, or typed; No application leaves it out. Once a name is given, In the other languages holds its name in each language of the installation; left blank, the name above is shown. Preview and Run now are greyed while the interface lacks something: a yellow band under the flow says what — Pick the source database, Name the source table, or give the query, A join needs its table, its short name and its condition, Pick the target database and table, A merge names its keys, A mapping line names its target column, A target column is mapped twice. With Drop and create anew, a target table that Liberty or an application owns is refused at Preview and at Save as well as at the run — see The ways of writing.
The flow
The interface is drawn from left to right: Source, with one box per joined table under it → Transform → Target. Each box sums up its part — the source's table, pool and filter; a join's type, table, short name and condition; the number of columns and of rules (or A plain copy); the target's table, pool and the way it is written. A click on a box opens its settings under the flow.
The source
| Field | What it holds |
|---|---|
| Database (pool) | The pool read. The list holds the database pools — not the HTTP servers nor the directories —, each with its kind of database. |
| Read | A table and its joins, or A query written here. |
A table and its joins
| Field | What it holds |
|---|---|
| Schema, Table | The table read — see Picking a table. Its short name is t. |
| Columns read | Empty: every column. Otherwise the columns, separated by commas, prefixed by the short name of their table and renamed with AS when needed: t.ABAN8, t.ABALPH, j1.ALCTY1 AS CITY. |
| Rows read (a condition) | A WHERE condition: t.ABAT1 IN ('C','V'). |
Join a table adds a join and opens it. A join holds:
| Field | What it holds |
|---|---|
| Schema, Table | The table joined. |
| Short name | Its name in the columns, the condition and the other joins — j1, j2… by default. |
| Join | Rows found on both sides (inner join) or Every row of the first (left join). |
| Join condition | The condition: j1.ALAN8 = t.ABAN8; several conditions are written with AND. |
Remove the join takes it away.
A query written here
The query (a SELECT) gives the rows: any SELECT the database accepts, for a source a table and its joins do not describe — a union, an aggregate, a sub-query. Its column names are the ones the rows carry.
Picking a table
A table is picked in two lists, the same for the source, a join and the target:
- Schema offers first the pool's own schemas — each
#SCHEMA.<KEY>#the pool defines, with the schema it stands for beside it —, then the other schemas of the database. A pool that defines none starts on The account's own: the schema of the connection. A pool that defines some asks for the schema first. - Table lists the tables and views of that schema, in order, with what a connector on the pool says of each one — its label and its description, under Described by a connector. A name can still be typed.
Picked as #SCHEMA.DTA#, the schema is the one the pool names at each run: an interface on JD Edwards reads the schema of the environment its pool points at, as a query does, and the same interface serves production and test. The tokens work in the table names, in Rows read and in the query. A token the pool does not define stops the run and names it — see Schema and DB-link tokens.
As soon as the source is complete — its database and table, or its query —, its columns are read, without a row, and offered in the mapping.
The transform
No mapping, a plain copy. Without a mapping line, the columns the source and the target share are copied as they are; the box says A plain copy.
A mapping. Each line names a target column, the source column it takes and what is done to it:
| Column | What it holds |
|---|---|
| Target column | A column of the target table, picked in the list or typed — a table created at the first run takes the names given here. |
| Source column | A column of the source, as the rows carry it. Empty for a rule that needs none: A fixed value, Columns joined. |
| Rule | What is done to the value — see below. |
| Its settings | The fields the rule asks for. |
| Type (when created) | The column's type when the interface creates the target table: Text (default), Whole number, Large whole number, Decimal number, Date, Date and time, Yes / no. A text column has a second box beside it, Its size when the table is created (text): 4000 characters when left blank. A table already there keeps its own types. |
Under the lines: Auto map, Add a column and Back to a plain copy, which removes every line.
Auto map
Auto map writes one line per column of the target table, in the table's order, and gives each one the source column of the same name, case aside. A line already there is kept as it is — its source filled when it had none —, and the lines naming another column stay after them. While the target table does not exist yet, it adds one line per source column instead. The button is offered once the source's or the target's columns are known.
The rules
| Rule | Its settings | What it gives |
|---|---|---|
| As it is | — | The value read, unchanged. |
| Trim the spaces | — | The text without the spaces at its start and end. |
| Upper case, Lower case | — | The text in upper or lower case. |
| A fixed value | value | The same value on every row, whatever the source. |
| A value when empty | value | The value read, or this one when it is empty or blank. |
| Columns joined | columns, separated by commas; separator | The values of these source columns, each trimmed, joined by the separator: ABALPH, ALCTY1 with -. |
| Part of the text | from character (1…); length | The text from that character — 1 is the first —, over that length (empty: to the end). |
| Replace a text | text replaced; replaced by | Every occurrence replaced. |
| Values mapped | C=customer; V=supplier; otherwise | The value read, trimmed, looked up in the list; not found: the otherwise value, or the value as it is when otherwise is empty. |
| JD Edwards date | — | A Julian JD Edwards date (CYYDDD: 126032 → 2026-02-01) as a date; 0 or empty gives an empty date. |
| Implied decimals / divided | decimals (JD Edwards); or divided by | An amount stored without its decimal point: 12345 with 2 decimals → 123.45. Without decimals, the value divided by the number given. |
| A number from text | decimal mark (., , or auto) | A number written as text. . or , names the decimal mark, the other character being a thousands separator; auto (default) takes the last of the two when both are there. |
| A date from text | format (%d/%m/%Y) | A date written as text, in that format — %Y-%m-%d by default; a format with hours, minutes or seconds gives a date and time. |
How the values are written
Each value is written as its column takes it. A text going into a text column is kept exactly as read — leading spaces included, as in the right-aligned codes of JD Edwards; any other value is turned into the column's type: a number into a text column is written as its text, a text into a number column as a number. A value that cannot be turned into its column's type stops the run, naming the source row and the column — nothing was written.
The target
| Field | What it holds |
|---|---|
| Database (pool) | The pool written. |
| Schema, Table | The table written — see Picking a table. New… names a table not in the database yet (letters, digits and _, starting with a letter; the source table's name is proposed): it is created at the first run. |
| Write mode | How the rows are written — see below. |
| Keys (merge) | The columns that identify a row, for Merge on keys: picked among the mapping's target columns or, for a plain copy, the columns the source and the target share. |
| Create the table from the mapping when it is missing | Ticked: a missing target table is created at the first run. Ticked by itself when a table is picked. |
| Rows per batch | The rows read and written at a time: 10 to 50,000; 1,000 when left blank. |
Under the fields, a line gives the columns of the table — or says This table is not in the target database yet.
The ways of writing
| Write mode | What a run does |
|---|---|
| Add to the table | Adds the rows read to those already there. |
| Replace its rows | Empties the table, then fills it. |
| Merge on keys | Replaces the rows that have the same keys as a row read, and adds the others. |
| Drop and create anew | Drops the table, creates it from the mapping — or from the types of the rows read —, then fills it. |
The writing is one transaction: every row is written, or none. Drop and create anew is the exception: the drop comes first, so a run that fails after it leaves the table empty — a yellow band says so in place of the creation box. It is meant for a table the interface owns: one of Liberty's own tables, or a table an application declares in its models — Nomasx-1, Nomajde —, is never dropped: the mode is refused, naming the owner, at Save, at Preview and at the run.
A table created by the interface
A missing target table is created at the first run when the creation box is ticked — and always with Drop and create anew. Its columns are the mapping's target columns with their Type (when created) and, for a text, their size; for a plain copy, the source's columns. A column given no type takes the one the rows read suggest — a number, a date, a date and time, a yes / no —, text otherwise. With Merge on keys, the keys become the table's key. Without the box, a missing table stops the run.
Preview and run
Preview transforms the first 20 rows of the source — the interface as it is on screen, saved or not — and writes nothing. It shows the SELECT sent to the source database, its schema tokens replaced, then the rows as they would be written, under The first 20 row(s), transformed — nothing written; when the target table does not exist yet, a line says it will be created at the first run.
Run now runs the saved interface: an interface with unsaved changes asks to be saved first. A confirmation recalls what is about to happen — Replace every row of dwh.customers with the source's? All of them or none. —, then the page gives the count: 12,480 row(s) read, 12,480 written in 3.4 s., the figures written in the reader's language. The rows are read and written in batches of Rows per batch, in the same transaction.
On a schedule
A Nomaflow job runs interfaces with the step Run an interface: one step per interface, in the order of the steps, on the job's schedules. The step reads the interface at each run, so an interface changed and saved here is the one the next run uses — see Steps → Interface.
Under the hood, the interfaces are saved in interfaces.toml, in the configuration; each Save rewrites it and keeps the previous version in the configuration history.
Access
The page, its preview and its run are for superusers. Putting an interface in a job is open to whoever edits jobs (Create and edit jobs, nomaflow:edit): the step's list of interfaces comes from the jobs' own routes. On a schedule, the interface runs as a step of that job — see Administration.
Tips & best practices
- Preview before the first run: the SQL sent and the rows transformed show a wrong join or a wrong rule before anything is written.
- On JD Edwards, pick the schema as a
#SCHEMA.<KEY>#token: the same interface then reads production or test, following its pool. - Prefer Merge on keys for a table others also write to, Replace its rows for a copy the interface alone fills, and keep Drop and create anew for a work table whose columns change with the mapping.
- An interface is the platform's own way to bring data in, out and across its databases — not an ETL product: no parallel runs, no lookups in another database from within a rule, no change capture. For a whole table copied as it is with the JD Edwards conversions, the Copy a table step is the simpler tool.