Start building

Transform and map

X12 850 purchase order → JSON

Parse a synthetic X12 850 and map the order to JSON. Syntax and envelope checks only. No trading-partner guide validation or AS2 transport.

  • X12 → JSON
  • Starter
  • 4 min

Last verified 2026-11-02 at bcd91cb — 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 processX12 850 purchase order → JSON5 activities

Scroll sideways to see the whole flow.

Flow diagram of X12 850 purchase order → JSON5 activities and 4 transitions: Synthetic input, Parse and check envelope, Map order, Render order, Return order.Synthetic inputstartParse and checkenvelopeedi.parse1Map orderdata.mapper2Render orderjson.render3Return orderend
List the 5 activities and 4 transitions

Activities

  1. Synthetic input start
  2. Parse and check envelope edi.parse
  3. Map order data.mapper
  4. Render order json.render
  5. Return order end

Transitions

  • Synthetic input → Parse and check envelope (on success)
  • Parse and check envelope → Map order (on success)
  • Map order → Render order (on success)
  • Render order → Return order (on success)

Walkthrough

  1. Parse and check the envelopeThe parser validates envelope counts and control references.
  2. Map the orderMap sample order fields into the target format.
  3. Render the resultInspect the resulting order in simulation.

What you will practise

  • Inspect syntax and envelope checks in simulation.
  • Map a synthetic order and compare a rejected envelope.

Sample cases

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

Valid order

Passed

The synthetic order is mapped successfully.

Expected result The synthetic order is mapped successfully.

3/3 assertions

  • Run completes in simulation
  • Order identifier is mapped
  • Order date is mapped

This sample run only; not a production certification.

Wrong segment count

Expected failure verified

The parser rejects the invalid envelope.

Expected result The parser rejects the invalid envelope.

3/3 assertions

  • Run fails closed
  • Envelope error
  • Mapping is skipped

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
f7ea00204e7097fc4516c7e3fc5b1e53e85d7c91b9c3730fabed3291e0c6ba20
Closure SHA-256
ec3be369365f2f59eb4669b9e1184a3f9b1f47f253160ed8d5442eb4c6962312
Runtime
1.27.0
Results
2/2 cases, 6/6 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/edi_x12_850_to_json.json
  • server/integration/templates/edi_x12_850_to_json.json

Verification event

Commit
bcd91cb49c9aa29ec50d3f1ea342447dd555c7cb
Verified at (UTC)
2026-11-02T12:07:21Z

How the Cohuno team reproduces this check

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