Steps
A step is one unit of work in a job. Steps run in order; when one fails, the following ones are recorded as skipped: earlier step failed.
| The step… | Type |
|---|---|
| runs one named query of a SQL connector | sql_query |
| copies a whole table from one connector to another | sql_copy |
| loads a spreadsheet or a CSV file into a table | file_load |
| writes the result of a read query to an Excel or CSV file | file_export |
| calls a Python function of a plugin | python |
| calls a URL | http |
| reads an LDAP / Active Directory directory into a table | ldap_sync |
| runs another job and waits for it | call_job |
| renders a saved analysis, a dashboard or a report to an Excel or PDF file | report |
| sends a message, with the files of the run attached | notify |
In the job editor, the + on a link of the flow offers the ten types, said in words — Copy a table, Run a query, Run a function, Read a directory, Call an address, Start another job, Load a file, Export to a file, Produce a report, Send a message — and inserts the step at that place; a click on a step's card opens its fields beside the flow. The cards and the head of the form show the kind the same way. Every dropdown of a step's form opens with its search box ready: typing filters at once, and a list of code — description lines is ordered on the code, a description being found by typing it.
At a glance
Common fields
| Field | Default | Notes |
|---|---|---|
name | — | Shown in the run detail; unique within the job. |
type | — | One of the ten types. |
Runs by default — enabled | true | Unticked, the step is skipped (recorded as skipped: disabled) unless the person who starts the job ticks it in the Run with parameters window. |
Stopped after (seconds) — timeout_seconds | 3600 | The step is cancelled after this time. Blank: one hour. |
Environment — pool | the connector's own | The environment (database or server) the step works on, when its connector runs on several — see Multi-pool connectors. |
continue_on_failure | false | true: when the step fails (after its retries), the next steps run anyway and the run ends failed, naming it — for a job chaining independent work. A checkbox in the step editor; for every step of a job, [jobs.step_defaults]. |
Runs by default, Stopped after (seconds) and Environment are under More settings in the step's form, folded until one of them is set. Environment lists the environments of the step's connector, or every environment of the installation for a step that names no connector; the connector's own leaves it to the connector. A Copy a table step names an environment on each side instead (see below); a Read a directory step has its directory pool.
Turn a step off for an install. A step the install doesn't need — the LDAP collection without LDAP — is listed in the job's disabled_steps = ["SECURITY_LDAP"] (the step editor's Turned off for this install checkbox). It never runs, even when a run or a preset selects every step: the Run with parameters window shows it off and not selectable, the run records it as skipped: turned off for this install. Unlike enabled — the default a run may override — it is the operator's last word, and the licensed apps installer keeps it across upgrades.
When a step fails on a database error, the run detail shows the database's own sentence — invalid input for query argument $1: 2025 (expected str, got int) — and the statement goes to the server log.
SQL query — sql_query
Runs one named query of a SQL connector — a query defined on the connector's page, read or write.
| Field | Required | Notes |
|---|---|---|
connector | yes | The SQL connector. |
query | yes | The name of the query, not SQL text. |
params | no | Values bound to the query's parameters. |
pool | no | Environment, under More settings: another pool of the connector's set — see Multi-pool connectors. |
Records the number of rows returned or affected. To refresh a materialised view, call a procedure or purge a table, write the statement as a query of the connector, then call it here.
SQL copy — sql_copy
Streams the rows of a source table to a target table, possibly on another database.
| Field | Default | Notes |
|---|---|---|
source = {connector, schema, table} | — | Required. Schema and Table are picked in the connector's database — the tables and views of the schema, each with its number of columns; a name can still be typed (a table not created yet, a database that cannot be read). Environment (pool) appears when the connector runs on several. |
target = {connector, schema, table} | — | Required. Same. |
mode | overwrite | Replace everything (overwrite): the rows are written to a work table <table>__new, which then replaces the target in one transaction — the target is never empty during the copy. Add to what is there (append): rows are inserted into the target as it is. |
type_coercion | jde | JD Edwards types (dates, amounts) (jde) applies the JD Edwards rules (scaled decimals, Julian dates, padded codes); As they are (none) copies the values unchanged. |
decimal_mode | truncate | With jde: Cut the extra decimals (truncate) or Keep every decimal (preserve). |
batch_size | 10000 | Rows per batch. |
strip_both_columns | [] | Columns whose values are trimmed on both sides. |
Add the new rows, update the others (upsert) is offered but refused at run time: for an insert-or-update, write a MERGE / ON CONFLICT query and call it with sql_query. Records the number of rows written.
File load — file_load
Loads an Excel workbook (.xlsx, .xlsm) or a text file (.csv, .txt, .tsv) into a table — on a schedule, without anyone at the keyboard, at the volume a facts table needs, and replayable for one period without touching the others.
The step's form asks five questions, in the order a person asks them — The file, How to read it, The table it fills, How it is loaded, Checks. Each field has a short label and, written under it, what it is for.
The file
Where the file comes from is one choice, which shows only its own fields:
| Choice | Fields | Notes |
|---|---|---|
| Given by the person who starts the job | — | The window that starts the job asks for the file: Run with parameters shows a file picker for each such step, and so does the job's page opened from an application's menu. Nothing else to set. |
| A file on the server | File on the server (path) | Its full path, which may contain ${params.x} (a value given when the job is started), ${run.id} and ${job.id}: /data/in/sales-${params.period}.xlsx. |
| A folder watched for new files | Folder (watch_dir), Files to take (watch_pattern, * by default) | Every matching file is loaded in name order, each in its own transaction, then moved to its done/ or failed/ sub-folder under a time-stamped name. A file that fails stops the run; the files after it stay in the folder. An empty folder is not an error. |
Picking a source empties the fields of the others. A file given when the job is started always wins.
How to read it
| Field | Default | Notes |
|---|---|---|
Sheet (Excel) — sheet | the first | A name or a number (1 = first). |
Row of the column titles — header_row | 1 | Data starts below. Empty rows are skipped. |
Separator (CSV) — delimiter | detected | Detected among ; , tab | when blank. |
Numbers written as text — decimal_separator | Detected | How the file writes a number stored as text: 1,234.56 — a dot for the decimals or 1.234,56 — a comma for the decimals; the other character is then a thousands separator. Spreadsheet cells typed as numbers are read as they are. |
Encoding — encoding | utf-8-sig | CSV only. |
A number written as text follows Numbers written as text. Spaces and apostrophes between digits are always thousands separators. With Detected:
- when a dot and a comma are both there, the last one is the decimal separator —
1.234,56and1,234.56both read as 1234.56; - several of the same character are thousands separators —
1,234,567; - a single one is the decimal separator —
12,5and12.5both read as 12.5 — except in a whole-number column, where groups of three digits are thousands:1,000reads as 1000.
Detected cannot tell what 1,000 means in a decimal column — one thousand, or one — and reads it as 1: name the file's separator when it writes thousands that way.
The table it fills
| Field | Notes |
|---|---|
Connector, Schema, Table — target | A SQL connector; the table, picked among the tables of the schema (or typed), must exist. Once the table is named, its columns are offered as lists in the fields below. |
Columns named differently in the file — columns | Rows of Column of the table and Its title in the file, or its position (#3 for a file without titles). A column with the same name in the file and in the table is matched by itself: list only the others. Titles match ignoring case, spaces, _ and -. Add a column adds a row. |
Values written on every row — constants | Rows of Column of the table and Value, for a column the file does not hold: ${run.id} (the number of the run), ${params.period} (a value given when the job is started) or a fixed text. Add a value adds a row. |
Each cell is converted to the type of its column: integers, decimals, dates (2026-10-27, 27/10/2026, 27.10.2026, 20261027, and Excel dates), booleans (1, true, yes, oui…), text. A number typed as text keeps no leading zeros that the spreadsheet already removed.
How it is loaded
| Field | Choice |
|---|---|
Rows already in the table — load_mode | Kept — the file is added to them (append, default). Replaced, for what the file carries (replace_partition): the rows of the table that have the same values as the file in the Replaced by columns are deleted, then the file is loaded — in one transaction: a failed load leaves the previous data in place, and a corrected month replaces that month only. |
Replaced by — partition_by | The columns that delimit what is replaced (period, company), picked among the table's columns — required with Replaced. The values come from the values written on every row when they cover every column, otherwise from the distinct values found in the file. |
A cell that cannot be read — on_error | Stops the load (fail, default): the first bad cell fails the step and names the row. Its row is left out, and counted as rejected (skip): bad rows are written to a CSV (file, row, reason) offered in the run detail. |
Batch size — batch_size | 10000 rows per insert. |
Checks
| Field | Notes |
|---|---|
Query that refuses the file — refuse_query, Read on — refuse_connector | A query, picked among the read queries of the connector (Read on: the connector of the table by default), run before anything is touched. It receives the values given when the job is started and the values written on every row. With Replaced by, it runs once for each set of values the file carries, those columns as binds (:YEAR, :MONTH, :COMPANY_CODE): the check follows the file, not a value typed when the job is started. If it returns a row, the load is refused and the first column is the reason shown: period 2026-02 is closed. |
Column to total — control_column, Expected total — control_total, Accepted difference — control_tolerance | The column, picked among the table's columns, is added up over the loaded rows and compared with the expected total: a number, ${params.total}, or a cell of the file (@B2, @Totals!B2). Another total, beyond the accepted difference, cancels the load and names both figures. |
In the run
The run detail shows N read · N inserted · N rejected and, when rows were rejected, Rejected rows (csv) to download them. The log adds the partitions replaced and the rows deleted.
Uploaded files and reject files go to the jobs' work area, .nomaflow/files next to the configuration; an upload is limited to 200 MB.
[[jobs.steps]]
type = "file_load"
name = "load-sales"
path = "/data/in/sales-${params.period}.xlsx"
sheet = "Sales"
target = { connector = "sales", schema = "public", table = "fact_sales" }
columns = { company = "Company", article = "Item", qty = "Quantity", revenue = "Revenue" }
constants = { period = "${params.period}", batch_id = "${run.id}" }
load_mode = "replace_partition"
partition_by = ["period", "company"]
refuse_query = "period_closed_get"
control_column = "revenue"
control_total = "@Totals!B2"
Python — python
Calls a function of an application's plugin.
| Field | Notes |
|---|---|
Function — callable | Picked in the list of the functions the applications ship: see below. Stored as module.path:function — checked for shape when saved, imported when the step runs. |
Values given to the function — op_kwargs | Name / value rows passed to the function, merged over the job's shared parameters. |
The function picker is the same everywhere a function is chosen — this step, a service's function step, an endpoint served by a function, a tool of the assistant, the steps run after a change package:
- the list is grouped by application and module, each line the function's name and what it does in plain words, ordered by name; the application of the function already picked comes first;
- the search box has the focus when the list opens: typing filters at once, on the name or the description;
- under the field, what is stored (
module:function) and the description in full; a name the list does not hold can still be typed, and the line under it says not among the functions the applications ship: check the name.
The function receives its arguments as keyword arguments and, when it declares them by name, connectors (the connector registry), ctx (the run: ctx.run_id, ctx.job_id, ctx.trigger) and settings. It may be async or not. Its return value: an int is the number of rows affected, a dict is kept as the step's details, None is fine; an exception fails the step. To reach the run log, write with a logger of a registered namespace. The full contract is in Write a callable.
HTTP — http
| Field | Default | Notes |
|---|---|---|
url | — | Required. Used as written. |
method | GET | GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS. |
headers | {} | Sent as they are. |
body | none | Text, or a table sent as JSON (with Content-Type: application/json when none is set). |
A 2xx answer succeeds; anything else fails the step with the status. The step keeps the status, the first 4 KB of the answer and the duration. Values from the environment are written ${NAME} in jobs.toml and replaced when the file is loaded.
LDAP sync — ldap_sync
Reads entries from an LDAP directory and runs a write query of a SQL connector for each entry.
| Field | Notes |
|---|---|
Directory pool (pool) | An LDAP directory pool, set up under Liberty Next → Administer → Pools: its server, its account and its base are used, and the three fields below are not needed — the form hides them. |
LDAP server (server) | Without a pool: ldaps://ad.example.com:636. |
Bind DN, Bind password (bind_dn, bind_password) | Without a pool: the account used to read; write the password as ${LDAP_PASSWORD}. |
Search base, Search filter (search_base, search_filter) | Where and what to search: DC=example,DC=com, (objectClass=user). With a pool, a blank search base takes the pool's base DN; a pool without one makes the step fail and ask for the search base. |
Attributes (attributes) | The attributes to read. |
Target connector, Target query (target_connector, target_query) | The write query run for each entry. |
Attribute → column mapping (mapping) | LDAP attribute → query parameter. A missing attribute gives NULL. |
Records the number of entries read and rows written.
Call a job — call_job
target_job_id names another job. The step starts it, waits for it to end and takes its result: success, failure or cancellation. The called job has its own run in the history, and inherits the caller's log level and run parameters. A job that would end up calling itself is refused.
Report — report
Renders a document into the run's work area: a saved analysis or dashboard of the Data Explorer, or a report of a plugin. Followed by a notify step, it makes a scheduled digest a plain job.
| Field (editor) | Notes |
|---|---|
| Source | A saved analysis (Explorer), A dashboard of analyses (Explorer) — one section per tile — or A report (plugin). |
| Explorer model, Analyses / Dashboards | The model, then one of its shared analyses or dashboards. A private one cannot be picked. |
| Report | For a plugin report: the report, from the reports of the installed applications. |
| Format | Excel or PDF — the same documents as the Explorer's export, the charts drawn in the PDF. |
| Period | A period by name — Last month, This month, Last year, This year, This quarter, Last 30 days, Last 7 days, Yesterday, Today, All dates — or The analysis's own period. |
| From (fixed date), To (fixed date) | Fixed dates in place of the period: both, or neither — the job is not saved with one only. |
| File name | The file's name; by default, the analysis's title. |
| Render as user | The document holds what that user sees: the data scope of their roles, with their attributes. A digest rendered as the manager of one company holds that company only. |
| Render as role | The data scope of a role. A rule whose values come from a user attribute allows nothing here: prefer Render as user for such roles. |
| What the report asks for | For a plugin report: its own parameters, as Parameter of the report / Value lines (YEAR = 2026); Add a value adds one. |
For a plugin report, the run's parameters — the job's, those chosen when running it, the user parameters — are passed to the report on top of the step's own, converted to the type the report declares (a number stays a number); a blank value leaves the report's default.
A coded column of a saved analysis is written as the analysis shows it — its label, its code or both, as set in the analysis; set the field to Code to keep the codes in the document.
With neither user nor role, the document is unrestricted. The run detail offers the file for download under the step; the log names it with its size.
Notify — notify
Sends a message through the notification channels, with the files this run produced attached.
| Field (editor) | Notes |
|---|---|
| Recipients | Picked like the alert recipients: Role, User or Address, then the name or the address. + whoever started the run adds user:{USER} — "send me the export I asked for". In jobs.toml: user:<login>, role:<role> or email:<address>. |
| Subject, Body | Text with placeholders: {JOB}, {RUN_ID}, {FILES} (the names of the attached files), {DATE} (today), {USER} (who started the run). |
Attach (run files; * = all) | * attaches every file the run produced — every report, and the rejected rows of a file_load; or name the files. A named file the run did not produce fails the step. |
| Channels | portal (the bell) and email — the only two. The e-mail account is the one of Notifications. |
The query or endpoint channel belongs to notification rules, not to this step: a job that must call an endpoint does it with a Call an address step (http).
The message links to the run. The run detail lists the attached files under the step.
A run nobody started — a schedule, another job — has no one behind user:{USER}: that recipient is left out. A step left with no recipient at all sends nothing and says so in its log, without failing the run.
[[jobs.steps]]
type = "report"
name = "revenue"
report = "analysis:revenue_by_business_unit"
app = "sales"
model = "sales"
format = "pdf"
period = "lastMonth"
as_user = "cfo"
[[jobs.steps]]
type = "notify"
name = "send"
recipients = ["role:management"]
subject = "Sales digest {DATE}"
body = "The monthly sales digest is attached: {FILES}."
attach = ["*"]
Schedule the job on the first of the month (cron 0 7 1 * *) — see Schedules.
File export — file_export
Writes the result of a named read query to a file in the run's work area — for another system to pick up, or for a notify step to attach. A query that writes is refused.
| Field (editor) | Notes |
|---|---|
| Connector, Query | The read query to run. |
| Parameters | Its binds; the run's parameters are passed too. A value may use ${params.x}. |
| Format | Excel (xlsx) (default) or CSV. |
| File name (default: the query) | May use ${params.x} and ${run.id}: sales-${params.period}. |
| Sheet | Excel only — the query's name by default. |
| CSV delimiter, Encoding | CSV only — ; and utf-8-sig by default. |
| Also copy to this folder (optional) | A server folder where a copy is written as well, created if missing: /data/out/${params.period}. |
The rows are read from the database as they come, up to the connector's row limit — the log says when the export was capped. The header row carries the columns' labels; hidden columns are left out. The run detail offers the file under the step, and the retention of the work area applies to it — not to the copy in the other folder.
Retries and timeouts
The job's Retry policy block (attempts, backoff fixed or exponential, base_seconds) applies to each step: a step is tried up to attempts times in all (1, the default, means no retry), with a wait of base_seconds between tries — constant, or doubling with exponential. The job as a whole stops after timeout_seconds (4 hours by default).