Start building

Orchestration

pain.001 corporate batch to pacs.008

Check batch count and decimal control sum before rendering every transfer in order through pinned subprocesses; no batch is submitted. Synthetic local subset; no SWIFT connectivity, CBPR+ certification, sanctions screening or vendor parity is implied.

  • ISO 20022 MX → ISO 20022 MX
  • Advanced
  • 8 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 processpain.001 corporate batch to pacs.0089 activities

Scroll sideways to see the whole flow.

Flow diagram of pain.001 corporate batch to pacs.0089 activities and 8 transitions: Synthetic input, Parse corporate batch, Map totals, Check supported subset and correlation, XSLT lower supported pain.001 subset, Select all payment fragments in source order, Render every payment with pinned helpers, Reject unsupported or mismatched input, Return evidence.Synthetic inputstartParse corporate batchxml.parse1Map totalsdata.mapper2Check supported subsetand correlationchoiceXSLT lower supportedpain.001 subsetdata.mapper3Select all paymentfragments in source…xml.xpath4Render every paymentwith pinned helpersforeach5Reject unsupported ormismatched inputraise_errorReturn evidenceend
List the 9 activities and 8 transitions

Activities

  1. Synthetic input start
  2. Parse corporate batch xml.parse
  3. Map totals data.mapper
  4. Check supported subset and correlation choice
  5. XSLT lower supported pain.001 subset data.mapper
  6. Select all payment fragments in source order xml.xpath
  7. Render every payment with pinned helpers foreach
  8. Reject unsupported or mismatched input raise_error
  9. Return evidence end

Transitions

  • Synthetic input → Parse corporate batch (on success)
  • Parse corporate batch → Map totals (on success)
  • Map totals → Check supported subset and correlation (on success)
  • Check supported subset and correlation → XSLT lower supported pain.001 subset (condition)
  • Check supported subset and correlation → Reject unsupported or mismatched input (otherwise)
  • XSLT lower supported pain.001 subset → Select all payment fragments in source order (on success)
  • Select all payment fragments in source order → Render every payment with pinned helpers (on success)
  • Render every payment with pinned helpers → Return evidence (on success)
SubprocessMap one corporate batch item5 activities

Scroll sideways to see the whole flow.

Flow diagram of Map one corporate batch item5 activities and 4 transitions: Synthetic input, Read one isolated Payment fragment, Map payment, Reuse pinned pacs.008 renderer, Return evidence.Synthetic inputstartRead one isolatedPayment fragmentxml.parseMap paymentdata.mapperReuse pinned pacs.008renderercall_processReturn evidenceend
List the 5 activities and 4 transitions

Activities

  1. Synthetic input start
  2. Read one isolated Payment fragment xml.parse
  3. Map payment data.mapper
  4. Reuse pinned pacs.008 renderer call_process
  5. Return evidence end

Transitions

  • Synthetic input → Read one isolated Payment fragment (on success)
  • Read one isolated Payment fragment → Map payment (on success)
  • Map payment → Reuse pinned pacs.008 renderer (on success)
  • Reuse pinned pacs.008 renderer → Return evidence (on success)
SubprocessRender one synthetic pacs.0086 activities

Scroll sideways to see the whole flow.

Flow diagram of Render one synthetic pacs.0086 activities and 5 transitions: Synthetic input, Validate synthetic payment contract, Check supported subset and correlation, Render BAH and pacs.008 with escaped values, Reject unsupported or mismatched input, Return evidence.Synthetic inputstartValidate syntheticpayment contractjson.validateCheck supported subsetand correlationchoiceRender BAH andpacs.008 with escaped…xml.renderReject unsupported ormismatched inputraise_errorReturn evidenceend
List the 6 activities and 5 transitions

Activities

  1. Synthetic input start
  2. Validate synthetic payment contract json.validate
  3. Check supported subset and correlation choice
  4. Render BAH and pacs.008 with escaped values xml.render
  5. Reject unsupported or mismatched input raise_error
  6. Return evidence end

Transitions

  • Synthetic input → Validate synthetic payment contract (on success)
  • Validate synthetic payment contract → Check supported subset and correlation (on success)
  • Check supported subset and correlation → Render BAH and pacs.008 with escaped values (condition)
  • Check supported subset and correlation → Reject unsupported or mismatched input (otherwise)
  • Render BAH and pacs.008 with escaped values → Return evidence (on success)

Walkthrough

  1. Parse corporate batchCheck batch count and decimal control sum before rendering every transfer in order through pinned subprocesses; no batch is submitted.
  2. Map totalsCheck batch count and decimal control sum before rendering every transfer in order through pinned subprocesses; no batch is submitted.
  3. XSLT lower supported pain.001 subsetCheck batch count and decimal control sum before rendering every transfer in order through pinned subprocesses; no batch is submitted.
  4. Select all payment fragments in source orderCheck batch count and decimal control sum before rendering every transfer in order through pinned subprocesses; no batch is submitted.
  5. Render every payment with pinned helpersCheck batch count and decimal control sum before rendering every transfer in order through pinned subprocesses; no batch is submitted.

What you will practise

  • Check batch count and decimal control sum before rendering every transfer in order through pinned subprocesses; no batch is submitted.
  • Inspect exact output and rejection cases using synthetic fixtures.
  • Keep external-service acceptance separate from payment settlement.

Sample cases

3 cases with 9 assertions, run with python -m server.integration examples --all in simulation.

Happy path

Passed

Run this synthetic case with isolated local fixtures. Synthetic local subset; no SWIFT connectivity, CBPR+ certification, sanctions screening or vendor parity is implied.

Expected result All declared value, outcome and trace checks must pass.

4/4 assertions

  • Run outcome
  • Verify /count
  • Verify /control_sum
  • Verify /submitted

This sample run only; not a production certification.

Wrong control sum

Expected failure verified

Run this synthetic case with isolated local fixtures. Synthetic local subset; no SWIFT connectivity, CBPR+ certification, sanctions screening or vendor parity is implied.

Expected result All declared value, outcome and trace checks must pass.

3/3 assertions

  • Run outcome
  • Fail closed
  • No effect: payments

This sample run only; not a production certification.

Wrong count

Expected failure verified

Run this synthetic case with isolated local fixtures. Synthetic local subset; no SWIFT connectivity, CBPR+ certification, sanctions screening or vendor parity is implied.

Expected result All declared value, outcome and trace checks must pass.

2/2 assertions

  • Run outcome
  • Fail closed

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
c68c098a149092eed847975ec596db461e92ec48d6c945d600f99ffbd8b1af19
Closure SHA-256
157dbeec5c8c32b4174342ee2899efbdb9a44980a8858807eba966a6ac77717f
Runtime
1.27.0
Results
3/3 cases, 9/9 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/swift_pain001_batch.json
  • server/integration/templates/swift_batch_item.json
  • server/integration/templates/swift_pain001_batch.json
  • server/integration/templates/swift_payment_mx.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 swift_pain001_batch
PYTHONPATH=. python scripts/export_public_gallery.py --check