Skip to main content

Interfaces and Core Nodes

A workflow is built from three kinds of node.

Source → Transform → Destination

The node palette​

In the Workflow Builder, the palette groups node types under three headings. Drag one onto the canvas to add it.

GroupNodeTriggered byScript
SourceHTTPAn inbound HTTP request on a routeRequired
SourceLLPAn inbound HL7 v2 message over MLLPOnly for a custom ACK
SourceFile/FTPA timer, polling a directory or FTP/FTPS/SFTP serverNot used
SourceDatabaseA timer, polling a status table for records that are readyNot used
SourceCustomA timerRequired
TransformCustomAn inbound message from an upstream nodeRequired
TransformData MapAn inbound message from an upstream nodeGenerated from the map
DestinationDatabaseAn inbound message of database rows from an upstream nodeNot used
DestinationFile/FTPAn inbound message from an upstream nodeNot used
DestinationLLPAn inbound message from an upstream nodeNot used

Transport nodes are configured with fields, not code. You write Lua only where the work is genuinely yours: HTTP handling, transformation, and generated or fetched messages. Converting a message from one format to another needn't be code either: a Data Map node generates it from a map you draw.

How this documentation names nodes

The palette shows a group heading and a short name. In running text, naming a node type needs both, so this documentation writes them together — "Source HTTP", "Destination File/FTP". In the Grid you will see HTTP under Source.

Your project's own node templates appear in the same palette, under the group matching their type. Prebuilt adapters arrive as templates too, so an Epic or S3 node is added the same way as any other and configured with fields.

Finding things in the palette​

ControlWhat it does
SearchFilters the palette by node name
All / Project / Catalog tabsNarrows to built-in nodes, this project's own templates, or adapters from a subscribed catalog
Catalog filterOn the Catalog tab, shows or hides individual catalogs when several are subscribed
Drag the palette's edgeResizes it, for adapter names too long to read at the default width
Destination Custom

The palette also offers Custom under Destination. It has no runtime implementation in this release — a workflow containing one will not run it. Use Transform Custom for script-driven delivery instead: a transform node that calls out and never pushes is a destination in every practical sense. See Custom Scripting Nodes.

Choosing a source​

You need to receiveUse
HL7 v2 over an MLLP socketSource LLP
An HTTP or REST callSource HTTP
Files from a directorySource File/FTP
Files from an FTP, FTPS, or SFTP serverSource File/FTP with Use FTP enabled
Records from a SQL Server, PostgreSQL, Oracle or SQLite database, as another application marks them readySource Database
Data you fetch or generate yourself on a scheduleSource Custom

Choosing a destination​

You need to deliverUse
HL7 v2 over MLLP, with ACK handlingDestination LLP
Files to a directoryDestination File/FTP
Files to an FTP, FTPS, or SFTP serverDestination File/FTP with Upload to FTP enabled
Rows into a SQL Server, PostgreSQL, Oracle or SQLite tableDestination Database
An outbound HTTP callTransform Custom, calling linkiir.link.web.post
EmailTransform Custom, calling linkiir.link.mail.send
Database work beyond writing rows, such as a stored procedure or your own SQLTransform Custom, calling linkiir.store

The last three are transform nodes rather than dedicated destination types: you make the outbound call from a script. See Linkiir Scripting API.

Node icons on the canvas​

Each built-in node type has its own icon on the canvas, so a workflow reads at a glance.

IconNode
GlobeSource HTTP
Folder with an arrow inSource File/FTP
Folder with an arrow outDestination File/FTP
Angle brackets with dotsSource and Destination LLP
Two arrowsTransform Data Map
DatabaseSource Database and Destination Database
TerminalSource, Transform and Destination Custom, and the Notification Alert node

An adapter built on one of these node types shows that type's icon. Any other node shows a general source, transform or destination icon.

The Node Parameters panel​

Click a node on the canvas to open Node Parameters on the right. The panel shows the node's name and type, then one card for each tab of the node's Configure dialog, in the same order. Every node is set up in that dialog. Nothing in the panel is edited in place, and the panel has no Edit button.

A field that uses a project variable shows the variable's value, and passwords show as dots. If a variable can't be found, the field shows its ${project:...} text highlighted, and hovering over it says why.

The buttons stay at the bottom of the panel while the cards scroll:

  • Configure opens the dialog on its first tab. Configure in a node's right-click menu on the canvas does the same.
  • A card's title opens the dialog on that card's tab.
  • Edit Script (Edit Map on a Data Map node) opens the node on the Scripting page.

The Configure dialog​

Every node's dialog starts with General and ends with Advanced. The tabs in between depend on the node:

NodeTabs between General and Advanced
Most nodesParameters (the fields the node's template defines), Custom Parameters
LLPConnection, Messages, Acknowledgments (destination only), Security, Custom Parameters
File/FTPFiles, Content (source only), FTP
DatabaseConnection, Tables, Behaviour (the source has Record after Tables)

A node with no template-defined fields has no Parameters tab: all of its fields are under Custom Parameters.

TabHolds
GeneralThe node's Name and Description. The Catalog it follows, for a catalog adapter. Run from commit.
AdvancedDebug Logging, Payload Encryption, and the node's Permissions. Permissions appear only on nodes that run a script. A Database node's Batching is here too.

Inside the dialog:

  • Fields are grouped in titled cards. Hover over a field's name to see its description.
  • A field appears only when the setting it depends on is on.
  • A number field shows its unit, such as ms, sec or attempts, at the end of its input.
  • On LLP, File/FTP and Database nodes, the first of the node's own tabs shows where the node listens, reads, writes or sends. It updates as you type.

Saving:

  • Save writes everything you changed on every tab. The fields are saved first, then the name, description and debug logging, then permissions, then payload encryption, then Unlink, then Run from commit.
  • If one of these is refused, the dialog stays open and says which one and why. Click Save again to retry. Anything already saved isn't sent twice.
  • Save stays unavailable while the node has no name.
  • Cancel asks before throwing away unsaved changes.
  • Saving commits the node's configuration to the project's history straight away. Only this node's configuration is committed: anything else you have changed but not committed, such as another node's script, stays uncommitted for you to commit from the Scripting page.
  • A node that hasn't been saved to the canvas yet can't be configured. Save the canvas first.

Run from commit pins the node to a commit. Saving a new pin reloads the node in the Runtime. Choosing the newest commit means "follow the latest": the node keeps picking up new commits instead of freezing on that one.

On a catalog adapter, choosing a version and Update apply as soon as you choose them, not on Save. They rewrite the node's files and fields, so they wait until the dialog has no other unsaved changes.

Unlink waits for Save. Clicking it marks the node to be unlinked, and the button changes to Keep linked in case you change your mind. Unlinking leaves the node's files as they are and makes them yours to change.

Payload Encryption reaches a running node when it next restarts.

Using project variables in a node​

Any field in the Configure dialog can take one of the project's variables instead of a typed value. Use them for values that change between environments, so the project is repointed by editing its Variables tab rather than node by node.

  1. Click the {x} button at the end of the field.
  2. Pick a variable. Each one shows its value; a secret shows Secret.

What the field holds afterwards depends on the field:

  • Text and path fields get ${project:NAME} at the cursor, so it can sit inside other text: https://${project:API_HOST}/v1. A line under the field shows what the text comes to.
  • Number, on/off and list fields show the variable in place of their control, with its value. Click × to go back to a normal value.
  • Password fields take the variable as their whole value, and a line under the field says which variable they use. Only password fields offer secret variables.

You can also type ${project:NAME} yourself. To keep a literal ${ in a value, write $${. Text such as ${name}, with no project:, is left as it is.

The dialog checks every reference:

  • A line under the field warns about a variable that doesn't exist, or a secret in a field that isn't a password field.
  • Save refuses the dialog while a reference is wrong and names the field.
  • A node whose variable has since been deleted refuses to start, and its error names the field and variable.

Two kinds of field don't offer variables:

  • A field that other fields depend on, such as a Database node's Database. Which fields appear depends on its value as written, so a variable there would hide the fields it controls.
  • The switches on the Advanced tab.

The node reads the variables when it starts, so after changing a variable, restart the nodes that use it.

Who can change what​

Each setting has its own permission. Without it, that control is read-only and its hover text names the permission it needs.

ChangePermission
A field's valueEdit config values
Adding, removing or redefining a custom parameter. A catalog version, Update or Unlink.Edit config fields
Name, description, Debug LoggingEdit node details
Payload EncryptionChange payload encryption
PermissionsEdit node permissions
Run from commitSet run commit

With none of them, the button reads View configuration and the dialog is read-only. See Users and Roles.

Custom Parameters​

The Custom Parameters tab holds fields of your own, beyond the node's built-in ones. The tab shows how many there are. File/FTP and Database nodes don't have this tab: a field you added to one of them appears in the dialog's first card, or under Writing on a Database node.

  • Values. Each field is one row, showing its name and type beside its value. Set the value right there. Hover over the name to see its description.
  • Definitions. The gear on a row opens the field's definition: its name, type, default value and description. While it's open, the value is set there as Default value. The type can be string, number, bool, list, password or file_path. For a list, enter its options separated by commas. Click Done to close the definition again.
  • Adding a field. Click Add parameter. The new field opens on its definition so you can name it.
  • Removing a field. Click the bin on its row.
  • Names. Every field needs a name, and no two fields on the node can share one. Save stays unavailable until each name is set and unique.

Beside Configure, an LLP node has Edit Ack, which opens its ack.lua. A Database node has Edit Schema, which opens its schema.json. Both open on the Scripting page. Edit Ack is unavailable until the node uses a custom ACK: Acknowledgment Mode set to Custom on a source, or Ack Verification set to Custom on a destination. Only then does the node run ack.lua.

Required fields and when they are checked​

Node configuration forms do not mark fields as required, and they let you save an incomplete node. Validation happens when the node starts: a missing or invalid value stops the start and names the field.

missing required field: Route Path
invalid required field: Interval (must be > 0)
missing required field: FTP Server (required when Use FTP is enabled)

The reference pages below mark the fields each node type needs to start. Everything else has a working default.

This is why Run Test followed by starting a single node is the right order when building: the test catches script errors, the start catches configuration errors.

Fields you can add yourself​

Beyond the fields a node type defines, you can add your own to a node's configuration and read them from your script. Useful for values you want configurable without editing code.

Nodes created from a Linkiir-supplied template have their built-in fields locked: you can change a value, but not a label, type, or option list, and you cannot remove or move one. Fields you add yourself remain fully editable.

To reorder fields, use the Node Config panel on the Scripting page. Switch it to Editing, then drag a field by the grip to the left of its name. To use the keyboard, focus the grip, press Space, move the field with the arrow keys, and press Space again. Locked fields have no grip and keep their order. Fields you added can go above, below, or between them. The new order is saved as soon as you drop the field.

Editing the canvas​

Adding, moving, connecting, and deleting all happen in the Workflow Builder's Edit mode. Outside it the canvas is read-only, though you can still select a node to read its parameters and open its script.

Right-click a node for:

ItemAvailable
ConfigureAlways, once the node has been saved to the canvas. Opens the node's Configure dialog
Create templateAlways
Add to catalogWith Manage catalogs, once the node has been saved to the canvas
Edit scriptAlways, except on File/FTP and Database nodes, which have no script
Remove upstream connectionEdit mode
Remove downstream connectionEdit mode, and not on a destination node
Delete nodeEdit mode

Right-click a connection, in edit mode, for Delete connection — that one line only, rather than everything running into or out of a node.

Removing a connection and deleting a node each ask before they act, naming what they are about to change: the node by name, or the two nodes a connection joins. Canvas changes stay local until you click Save; Cancel restores the canvas as it was when you entered edit mode.

Deleting a node removes it, and all its files, from every user's copy of the project, including changes to it that nobody has committed yet. Anything you want to keep from a node is safe once committed: the node's committed files stay in the project's history.

The breadcrumb above the canvas switches project and workflow, and creates them too: the project dropdown offers New project and the workflow dropdown New workflow, each taking a name and description and opening what it creates.

Reference pages​

Conditional fields

Many fields appear only once the setting they depend on is enabled. The FTP fields on a File/FTP node appear after you turn Use FTP on; the TLS fields appear after Use SSL. If a field in these pages is not visible, check the setting it depends on.