Skip to main content

Your First Workflow

Interface reference: October 2026 light rebrand · Checked 23 October 2026.

In about twenty minutes you will build a small workflow that makes a decision: it receives a lab result, picks out the number, checks whether the value is above the threshold, and takes either a high-value branch or a routine branch and returns the input record. It needs no connector, no credentials and no patient data, so you can build it in any organization and run it as often as you like.

You will learn the moves that every workflow uses: adding nodes, setting them up, connecting ports, validating, running with your own values, and reading what happened.

The workflow canvas: Lab result, Pick the value, Value above 5.5?, High-value record, Routine record and Result.

Data flows through a value check and one of two record-building branches; the other branch is skipped.

Before you start​

  • You can open Tiet · Studio → Workflows in the sidebar. If you cannot, ask an administrator to give you workflow permissions (see Administration).
  • All data in this tutorial is synthetic. Keep it that way while you learn.

Tutorial files​

Use these files alongside the steps below:

The inputs use synthetic identifiers. The workflow has no external connectors and does not send notifications.

1. Create the workflow​

  1. Open Tiet · Studio → Workflows.
  2. Choose New Workflow (top right). A blank editor opens in a new tab.
  3. Select the workflow name in the toolbar (it reads New Pipeline until you rename it). The right panel opens on the Inspector tab and shows Pipeline Properties. Set Name to Lab result branching. (Right-clicking an empty part of the canvas and choosing Pipeline Properties does the same.)

The left panel has two tabs, Nodes (the nodes already in this workflow) and Palette (the catalog of nodes you can add). A blank workflow opens on Palette; a workflow that already has nodes opens on Nodes.

The toolbar above the canvas holds, from left to right: the zoom and layout controls, Resources, Validate, Save, the Live/Test toggle, the Run in environment selector, the Run button with its arrow menu, and Deploy. Top right of the canvas are the Routing switch (Smart or Curved edges) and AI Assistant.

2. Add the first node: the lab result​

  1. In the search box (it reads "Search name, type, port, standard…"), type input. The search also matches categories, descriptions and port types, so several nodes may appear; look for the one named Input.
  2. Drag the Input node onto the canvas.
  3. Select it. The Inspector tab on the right opens. Under Identity, set Display name to Lab result.
  4. Under Node Settings (the Basic tab), set:
Setting (label)How to enter it
Required Fields (required_fields)Choose Add item three times and type patient_id, test and value, one per item
Default Values (defaults)A JSON text box. Paste {"patient_id": "test-patient-a", "test": "potassium", "value": 4.2}. If the text is not valid JSON the box turns red and says "Invalid JSON — stored as plain text until it parses."

The input node is where values enter the workflow. defaults are used when you run without typing values, and required_fields makes the run stop with a clear error if one is missing.

3. Pick out the number​

The decision in the next step compares one number with 5.5, but the Lab result node hands on the whole record (patient_id, test and value together). A node on the canvas can only be wired port to port, and the port carries the entire record, so you add a small node that picks the number out of it.

  1. Search for jsonpath and drag the JSONPath node onto the canvas, below and to the right of the first node.
  2. Set Display name to Pick the value.
  3. Under Node Settings, set Path (path) to value.

The node reads the record on its data port and puts the field named by Path on its value port. With the default record, value carries 4.2: a plain number, which is what a comparison needs.

4. Add the decision​

  1. Search for condition and drag the Condition node onto the canvas to the right of the first node.
  2. Set Display name to Value above 5.5?.
  3. Under Node Settings, set:
Setting (label)How to enter it
Field (field)Text: value (the name of the number you are testing)
Condition Type (condition_type)Drop-down: choose greater_than
Compare Value (compare_value)A JSON box: type 5.5 (a number, not text)
Pass Through (pass_through)On the Advanced tab, a JSON box: {"record": "context"}

Condition settings on the Basic tab: Field is value, Condition Type is greater_than, and Compare Value is the number 5.5.

Switch to Advanced to keep the original record on the chosen branch:

Condition settings on the Advanced tab: Pass Through maps record to context.

The node has two input ports. The number to test arrives on field (from Pick the value). The whole lab record arrives on context, a port that only carries data across the gate untouched. The node tests the number and activates one of its two output ports: true or false. pass_through copies what arrived on context onto the branch it chooses, under the name record, so the next node still has the patient, the test and the value. Without it, the branch carries only the comparison result.

5. Add the two outcomes​

Add two Transform nodes (search transform), one above and one below the condition node. They build the record that each branch produces. Both use the same output mapping: this exercise teaches branching and execution inspection. It does not send a notification or make a clinical decision; the threshold is only a synthetic test value.

For the upper node: Display name High-value record. For the lower node: Display name Routine record. Give both the same settings:

Setting (label)How to enter it
Transformation Type (transformation_type)Drop-down: map (the default)
Mappings (mappings)Choose Add field three times. Each row has a Target box and a Source (dot path ok) box: patient from input.record.patient_id, test from input.record.test, value from input.record.value. Leave Transform at "none" and Default empty

Transform mappings: patient reads input.record.patient_id, test reads input.record.test, and value reads input.record.value.

The Source box suggests field names once the node is wired to an upstream node (and, after a run, from the real output); you can always type a name yourself.

Why input.?

A transform reads upstream data under the name of the port it is wired to. You will wire the branch into each node's input port, so the fields are input.record.patient_id, input.record.test and input.record.value (record is the name you gave in Pass Through). Without the input. prefix, the mapped fields come out empty. Ports, types and data flow explains this in detail.

6. Add the output​

Search for output and drag the Output node to the far right. Set Display name to Result. Leave its settings at their defaults (Output Format json).

7. Connect the ports​

Drag from an output port (a dot on the right of a node) to an input port (a dot on the left of the next node):

FromPortToPort
Lab resultoutputPick the valuedata
Pick the valuevalueValue above 5.5?field
Lab resultoutputValue above 5.5?context
Value above 5.5?trueHigh-value recordinput
Value above 5.5?falseRoutine recordinput
High-value recordresultResultinput
Routine recordresultResultinput

Every edge above uses a port the node declares, so you can draw all of them in the editor. Lab result is wired twice: once to Pick the value (the number to test) and once to context (the whole record to carry along). Hover a port to see its name and type. The condition node has two input ports, field (the number it tests) and context, and four output ports: true, false, condition_met and success. The builder refuses a connection between two ports whose types cannot connect.

Check the port names

If an edge uses a port that does not exist, nothing warns you: the run completes and the node on the end is skipped. Look at each port name in the table above.

8. Validate​

Choose Validate in the toolbar. When the workflow is sound the button turns green and reads Valid. If it turns red and reads Invalid, hover it to see the errors.

9. Save a version​

Choose Save in the toolbar (or press Ctrl/Cmd+S). The Save New Version dialog shows the Current version and a suggested New version (for a new workflow, 1.1); accept it or edit it, then choose the Save v… button. Every explicit save asks for a version.

Save once before you first run. Run, Run with inputs, Dry run and Deploy only do something once the workflow has been saved at least once; until then, Run with inputs is greyed out in the Run menu. After that, each of them saves your current changes first (without asking for a version) and then runs; if that save is refused, you get a Save failed message and nothing runs.

10. Run it twice​

The Run in selector next to the Run button picks the environment the run executes in; leave it on its default. The toggle beside it reads Live (real connectors) or Test (fixtures); this workflow needs neither. Open the arrow next to Run and choose Run with inputs. A dialog titled Run with inputs opens with a JSON text box, pre-filled with the defaults from your input node:

Run with inputs dialog containing the synthetic patient identifier, test name and numeric value 4.2, before running.

Paste the contents of one of the sample input files into the JSON box, or edit the defaults:

  1. Choose Run with value set to 4.2. Watch the nodes: Routine record ends done, High-value record shows skipped.
  2. Open Run with inputs again and set "value": 6.1. This time High-value record runs and Routine record is skipped.

Type the value as a number (6.1), not as text ("6.1"). A text value fails with values must be numeric for > comparison.

Read what happened​

  • The EXECUTION LOG tab at the bottom lists each node and its result (the other bottom tabs are STEP DEBUG and TRACE). Run also has a shortcut, Ctrl/Cmd+Enter.
  • Select a node and open the Diff tab in the right panel (next to Inspector, Assistant and Docs) to compare what went in with what came out.
  • For a closer look, choose Debug step-by-step from the Run menu. It pauses at each node; afterwards, right-click a node and choose Inspect Data.

What you should see:

valueHigh-value recordRoutine recordResult receives
4.2skippeddone{patient: "test-patient-a", test: "potassium", value: 4.2}
6.1doneskipped{patient: "test-patient-a", test: "potassium", value: 6.1}

Both branches feed the same Result node. The result retains the original fields; the execution log shows which branch ran. To notify someone, add and separately configure a notification step after the relevant branch.

If your result differs​

What you seeCheck
Run with inputs is disabledSave the workflow once in step 9.
values must be numeric for > comparisonUse 6.1, without quotes, and connect Pick the value → value to the condition's field port.
The result loses patient or test fieldsOn the condition's Advanced tab, set Pass Through to {"record": "context"}. Connect Lab result → output to context.
Mapped fields are emptyStart each mapping with input.record., as in step 5.
The expected branch stays skippedCompare every connection against the port table in step 7.

See workflow troubleshooting for other messages.

What you learned​

IdeaWhere it showed up
Data moves from port to portStep 7
A port carries a whole value; a node picks out the field you needStep 3
A node can choose between branches, and the other branch is skippedSteps 4 and 10
A node reads upstream data under its port name (input.record.field)Step 5
Numbers must be numbersStep 10
Testing means running with values at both sides of a decisionStep 10

Where next​

Something unclear? Send documentation feedback by email.