Start building

Transform and map

Two-line records · rows and columns

A customer record spans two physical rows. Line 1 carries identity and name; line 2 carries street and postal code. Nested output can be mapped without manual string slicing.

  • Fixed-width → Fixed-width
  • Intermediate
  • 6 min

Last verified 2026-10-31 at f4ce7d0 — simulation fixtures

Try this template in Studio

Studio activation is a one-time payment of USD 20.

Flow

Drawn at build time from the node positions in the template's process definitions. Numbered markers are the walkthrough stages.

Main processTwo-line records · rows and columns4 activities

Scroll sideways to see the whole flow.

Flow diagram of Two-line records · rows and columns4 activities and 3 transitions: Start, Parse fields on relative rows 1 and 2, Render the same two-line contract, Return result.StartstartParse fields onrelative rows 1 and 2format.parse1Render the sametwo-line contractformat.render2Return resultend
List the 4 activities and 3 transitions

Activities

  1. Start start
  2. Parse fields on relative rows 1 and 2 format.parse
  3. Render the same two-line contract format.render
  4. Return result end

Transitions

  • Start → Parse fields on relative rows 1 and 2 (on success)
  • Parse fields on relative rows 1 and 2 → Render the same two-line contract (on success)
  • Render the same two-line contract → Return result (on success)

Walkthrough

  1. Parse fields on relative rows 1 and 2Parse fields on relative rows 1 and 2
  2. Render the same two-line contractRender the same two-line contract

What you will practise

  • Inspect each field position, data type and required rule.
  • Run with known sample input and inspect expected versus actual results.
  • Add an independent editable copy without activating live external connections.

Sample cases

2 cases with 6 assertions, run with python -m server.integration examples --all in simulation.

Two physical rows become one nested record

Passed

Run the actual format and mapping engine; external operations use explicit simulation fixtures.

Expected result Two physical rows become one nested record — every expected result is checked.

4/4 assertions

  • Process succeeded
  • Nested customer name
  • Postal code from row 2
  • Round trip preserved

This sample run only; not a production certification.

Incomplete two-line record is rejected

Expected failure verified

Run the actual format and mapping engine; external operations use explicit simulation fixtures.

Expected result Incomplete two-line record is rejected — every expected result is checked.

2/2 assertions

  • Process failed
  • Validation error

This sample run only; not a production certification.

Prerequisites

Runtime
Cohuno runtime 1.27.0, the version recorded when these cases last passed.
Starter
Manual start; no listener.
Optional dependencies
None beyond the base runtime.
Simulation fixtures
None: no activity in this template uses a connector.
Verification details

Provenance

What was verified, and when. The content part changes whenever the pack, a process in its closure, the runtime version or a case result changes; the gallery check then fails until the gallery is regenerated and the changed templates are verified again.

Verified content

Pack SHA-256
1d6cae17e56e0a8f2fb36dfc03c6f6b0d6f1da46c56cf2a998a12c234da4493d
Closure SHA-256
32d230a9a7afc3db9a5c326fa4f758bc85c9428fd1e7a6ff94cac526cf82a4db
Runtime
1.27.0
Results
2/2 cases, 6/6 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/multiline_address_format.json
  • server/integration/templates/multiline_address_format.json

Verification event

Commit
f4ce7d08eedc90267b405ed1974344153a8b3a34
Verified at (UTC)
2026-10-31T21:19:21Z

How the Cohuno team reproduces this check

PYTHONPATH=. python -m server.integration examples --example multiline_address_format
PYTHONPATH=. python scripts/export_public_gallery.py --check