Skip to main content

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 connectorsql_query
copies a whole table from one connector to anothersql_copy
loads a spreadsheet or a CSV file into a tablefile_load
writes the result of a read query to an Excel or CSV filefile_export
calls a Python function of a pluginpython
calls a URLhttp
reads an LDAP / Active Directory directory into a tableldap_sync
runs another job and waits for itcall_job
renders a saved analysis, a dashboard or a report to an Excel or PDF filereport
sends a message, with the files of the run attachednotify

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​

⛓Job · sales-loadJob-level settings + the step pipeline← Back to jobsunsaved changesSave−100%+▶Start+LOAD A FILEload-sales→ sales.fact_sales+RUN A QUERYrefresh-totalssales.totals_refresh+SEND A MESSAGEsendrole:management · Sal…+⚑EndCopy a tableRun a queryRun a functionRead a directoryCall an addressStart another jobLoad a fileExport to a fileProduce a reportSend a messageLoad a fileload-sales→ sales.fact_sales↑↓⧉✕STEP NAMEload-salesIf this step fails, run the next steps anyway (…)Turned off for this install — never runs (…)▸ More settingsTHE FILEWHERE THE FILE COMES FROMGiven by the person who starts the job⌄The window that starts the job asks for the file. Nothing else to set here.HOW TO READ ITSHEET (EXCEL)SalesROW OF THE COLUMN TITLES1SEPARATOR (CSV)blank: detectedNUMBERS WRITTEN AS TEXTDetected (1,5 is read 1.5 — say which…⌄ENCODINGutf-8-sigTHE TABLE IT FILLSCONNECTORsales⌄SCHEMApublic⌄TABLEfact_sales⌄COLUMNS NAMED DIFFERENTLY IN THE FILEColumn of the tableIts title in the file, or its positionrevenue⌄Revenue🗑VALUES WRITTEN ON EVERY ROWperiod⌄${params.period}🗑HOW IT IS LOADEDROWS ALREADY IN THE TABLEReplaced, for wh…⌄REPLACED BYperiod ✕company ✕A CELL THAT CANNOT BE READStops the load⌄BATCH SIZE10000CHECKSQUERY THAT REFUSES THE FILEperiod_closed_get⌄READ ONthe connector of…⌄COLUMN TO TOTALrevenue⌄EXPECTED TOTAL@Totals!B2ACCEPTED DIFFERENCE0A click on a cardopens that step beside the flowThe + menuthe ten kinds, said in wordsTable's columns offeredas a list, once the table is pickedMore settingsby default · timeout · environmentStep iconsup, down, clone, delete1 · Where the file comes fromone choice, only its own fields2 · How to read itsheet, titles, separators3 · The table it fillsthe table picked in the schema4 · The rows already therekept, or replaced for the file5 · What is checkeda refusing query, a total

Common fields​

FieldDefaultNotes
name—Shown in the run detail; unique within the job.
type—One of the ten types.
Runs by default — enabledtrueUnticked, 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_seconds3600The step is cancelled after this time. Blank: one hour.
Environment — poolthe connector's ownThe environment (database or server) the step works on, when its connector runs on several — see Multi-pool connectors.
continue_on_failurefalsetrue: 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.

FieldRequiredNotes
connectoryesThe SQL connector.
queryyesThe name of the query, not SQL text.
paramsnoValues bound to the query's parameters.
poolnoEnvironment, 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.

FieldDefaultNotes
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.
modeoverwriteReplace 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_coercionjdeJD 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_modetruncateWith jde: Cut the extra decimals (truncate) or Keep every decimal (preserve).
batch_size10000Rows 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:

ChoiceFieldsNotes
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 serverFile 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 filesFolder (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​

FieldDefaultNotes
Sheet (Excel) — sheetthe firstA name or a number (1 = first).
Row of the column titles — header_row1Data starts below. Empty rows are skipped.
Separator (CSV) — delimiterdetectedDetected among ; , tab | when blank.
Numbers written as text — decimal_separatorDetectedHow 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 — encodingutf-8-sigCSV 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,56 and 1,234.56 both read as 1234.56;
  • several of the same character are thousands separators — 1,234,567;
  • a single one is the decimal separator — 12,5 and 12.5 both read as 12.5 — except in a whole-number column, where groups of three digits are thousands: 1,000 reads 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​

FieldNotes
Connector, Schema, Table — targetA 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 — columnsRows 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 — constantsRows 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​

FieldChoice
Rows already in the table — load_modeKept — 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_byThe 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_errorStops 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_size10000 rows per insert.

Checks​

FieldNotes
Query that refuses the file — refuse_query, Read on — refuse_connectorA 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_toleranceThe 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.toml
[[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.

FieldNotes
Function — callablePicked 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_kwargsName / 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:

pythonrefresh-totalsFUNCTIONj_refresh_totalsRebuild the monthly totals from the loaded sales⌄Search or type a value…SALES · LOADSj_load_itemsLoad the item file into the items tablej_refresh_periodsRebuild the period rows from the loaded salesj_refresh_totalsRebuild the monthly totals from the loaded salesSALES · REPORTSj_month_digestThe monthly digest: revenue by business unitSTOCK · CHECKSj_negative_stockList the items whose stock is below zerosales.loads:j_refresh_totals— Rebuild the monthly totals from the loaded sales(under the field once the list is closed: what is stored, and the description in full)Typing filters at oncethe search box has the focusApplication · moduleone group each, by nameWhat is storedmodule:function, full descriptionThe function pickedits application comes firstName and what it doesordered by name
  • 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​

FieldDefaultNotes
url—Required. Used as written.
methodGETGET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS.
headers{}Sent as they are.
bodynoneText, 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.

FieldNotes
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.

sales-monthly-digestA click on the report card, then on the message card: each opens its fields beside the flow.▶Start+PRODUCE A REPORTrevenueanalysis:revenue_by_bu…+SEND A MESSAGEsendrole:management · Sal…+⚑EndProduce a reportrevenueWHAT TO RENDERSOURCEA saved analysis…⌄EXPLORER MODELsales · sales⌄ANALYSESrevenue_by_bu…⌄FORMATPDF⌄PERIODLast month⌄FILE NAMEmonthly-salesFROM (FIXED DATE)TO (FIXED DATE)Fixed dates in place of theperiod: give both, orneither.RENDER AS USERcfoRENDER AS ROLEUnrestricted⌄Step name, the two checkboxes and More settings sit above, as for every step.Send a messagesendMESSAGERECIPIENTSRole · management ✕RoleUserAddressPick or type…⌄+ whoever started the runSUBJECTSales digest {DATE} — {JOB}{ }BODYThe monthly sales digest is attached: {FILES}.{ }ATTACH (RUN FILES; ∗ = ALL)∗CHANNELSportalemailSaved objectshared analyses and dashboardsPeriod, or fixed datesboth dates, or neitherVisibilitya user's or a role's data scopeRecipients pickedrole, user or addressWhoever started ituser:{USER}, left out on a schedulePlaceholders{JOB} {RUN_ID} {FILES} {DATE}…Bell and e-mail onlyan endpoint call is its own step
Field (editor)Notes
SourceA saved analysis (Explorer), A dashboard of analyses (Explorer) — one section per tile — or A report (plugin).
Explorer model, Analyses / DashboardsThe model, then one of its shared analyses or dashboards. A private one cannot be picked.
ReportFor a plugin report: the report, from the reports of the installed applications.
FormatExcel or PDF — the same documents as the Explorer's export, the charts drawn in the PDF.
PeriodA 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 nameThe file's name; by default, the analysis's title.
Render as userThe 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 roleThe 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 forFor 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
RecipientsPicked 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, BodyText 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.
Channelsportal (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.toml — a monthly digest
[[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, QueryThe read query to run.
ParametersIts binds; the run's parameters are passed too. A value may use ${params.x}.
FormatExcel (xlsx) (default) or CSV.
File name (default: the query)May use ${params.x} and ${run.id}: sales-${params.period}.
SheetExcel only — the query's name by default.
CSV delimiter, EncodingCSV 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).