Start building

Transform and map

EDIFACT ORDERS → XML order

Parse a synthetic EDIFACT ORDERS message and map the order to XML. Syntax and envelope checks only. No trading-partner guide validation or AS2 transport.

  • EDIFACT → XML
  • 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 processEDIFACT ORDERS → XML order5 activities

Scroll sideways to see the whole flow.

Flow diagram of EDIFACT ORDERS → XML order5 activities and 4 transitions: Synthetic input, Parse and check envelope, Map order, Render order, Return order.Synthetic inputstartParse and checkenvelopeedi.parse1Map orderdata.mapper2Render orderxml.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 xml.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 5 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.

2/2 assertions

  • Run completes in simulation
  • XML order is rendered

This sample run only; not a production certification.

Mismatched interchange reference

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
2fd85547092930de78ad0c6493290b61160d9caf1418b5bc8b58105c3081587d
Closure SHA-256
58bb0f82daa34c02192a54fd32f26cbe330b7796dff0066c781da873f1a54ead
Runtime
1.27.0
Results
2/2 cases, 5/5 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/edifact_orders_to_xml.json
  • server/integration/templates/edifact_orders_to_xml.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 edifact_orders_to_xml
PYTHONPATH=. python scripts/export_public_gallery.py --check