Transform and map
Fixed-width orders · controls to CSV
Read header/detail/trailer records by inclusive columns. Validate exact implied decimals and count/sum controls, map only detail records and render a CSV report.
Last verified 2026-10-31 at f4ce7d0 — simulation fixtures
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.
Scroll sideways to see the whole flow.
List the 5 activities and 4 transitions
Activities
- Start
start - Parse H / D / T and reconcile totals
format.parse - Map typed detail records
data.mapper - Render verified CSV
format.render - Return result
end
Transitions
- Start → Parse H / D / T and reconcile totals (on success)
- Parse H / D / T and reconcile totals → Map typed detail records (on success)
- Map typed detail records → Render verified CSV (on success)
- Render verified CSV → Return result (on success)
Walkthrough
- Parse H / D / T and reconcile totalsParse H / D / T and reconcile totals
- Map typed detail recordsMap typed detail records
- Render verified CSVRender verified CSV
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 7 assertions, run with python -m server.integration examples --all in simulation.
Two orders total 44.97
PassedRun the actual format and mapping engine; external operations use explicit simulation fixtures.
Expected result Two orders total 44.97 — every expected result is checked.
4/4 assertions
- Process succeeded
- Both detail records exported
- Exact trailer total
- All controls matched
This sample run only; not a production certification.
Bad trailer blocks all downstream work
Expected failure verifiedRun the actual format and mapping engine; external operations use explicit simulation fixtures.
Expected result Bad trailer blocks all downstream work — every expected result is checked.
3/3 assertions
- Process failed
- Validation is explicit
- Export was not called
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
0f247c94c6f2380b8b88255970a3ca0e15d354f780825acd6e2615971f5d1b5c- Closure SHA-256
c4f3b7a8ad91d76e3ce9391750d1f0955b69b95271229bb46b523a9144599104- Runtime
1.27.0- Results
- 2/2 cases, 7/7 assertions, mode simulate, external calls: none.
- Files in the closure
server/integration/example_packs/fixedwidth_reconciled_orders.jsonserver/integration/templates/fixedwidth_reconciled_orders.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 fixedwidth_reconciled_orders PYTHONPATH=. python scripts/export_public_gallery.py --check