Start building

Messaging and events

JMS queue → transform → confirm

Process a simulated queue message end to end. Normalize its XML in a child process, send a response and explicitly confirm only after processing succeeds.

  • JMS → JMS
  • Intermediate
  • 5 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 processJMS · order processing6 activities

Scroll sideways to see the whole flow.

Flow diagram of JMS · order processing6 activities and 5 transitions: Start, JMS Queue Receiver, Normalize order, JMS Queue Sender, Confirm Message, End.StartstartJMS Queue Receiverjms.receive1Normalize ordercall_process2JMS Queue Senderjms.send3Confirm Messagejms.confirm4Endend
List the 6 activities and 5 transitions

Activities

  1. Start start
  2. JMS Queue Receiver jms.receive
  3. Normalize order call_process
  4. JMS Queue Sender jms.send
  5. Confirm Message jms.confirm
  6. End end

Transitions

  • Start → JMS Queue Receiver (on success)
  • JMS Queue Receiver → Normalize order (on success)
  • Normalize order → JMS Queue Sender (on success)
  • JMS Queue Sender → Confirm Message (on success)
  • Confirm Message → End (on success)
SubprocessNormalize order · subprocess7 activities

Scroll sideways to see the whole flow.

Flow diagram of Normalize order · subprocess7 activities and 6 transitions: Start, Parse order XML, Validate order XSD, Normalize with XSLT, Parse normalized XML, Map to JSON object, Return order.StartstartParse order XMLxml.parseValidate order XSDxml.validateNormalize with XSLTxml.xsltParse normalized XMLxml.parseMap to JSON objectassignReturn orderend
List the 7 activities and 6 transitions

Activities

  1. Start start
  2. Parse order XML xml.parse
  3. Validate order XSD xml.validate
  4. Normalize with XSLT xml.xslt
  5. Parse normalized XML xml.parse
  6. Map to JSON object assign
  7. Return order end

Transitions

  • Start → Parse order XML (on success)
  • Parse order XML → Validate order XSD (on success)
  • Validate order XSD → Normalize with XSLT (on success)
  • Normalize with XSLT → Parse normalized XML (on success)
  • Parse normalized XML → Map to JSON object (on success)
  • Map to JSON object → Return order (on success)

Walkthrough

  1. Receive fixture messageThe queue is simulated with a supplied XML TextMessage fixture.
  2. Call the normalization flowThis example installs its own isolated child process.
  3. Send a responseInspect the simulated sender’s input body in the trace.
  4. Confirm the receiptConfirmation uses the received message receipt.

What you will practise

  • Understand receive/send/confirm ordering.
  • See an invalid message left unconfirmed instead of silently acknowledged.

Sample cases

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

Valid queue message

Passed

The message is processed and explicitly confirmed.

Expected result processed: true, normalized order data, one simulated send and no pending receipt.

6/6 assertions

  • Process completes in simulation
  • Processed result returned
  • Order ID preserved
  • Sender executed
  • Confirmation executed
  • No unconfirmed message remains

This sample run only; not a production certification.

Invalid XML message

Expected failure verified

A bad message stops before sending or confirming.

Expected result The run fails with one unconfirmed message. No send or confirmation activity is executed.

4/4 assertions

  • Expected failure is recorded
  • No response is sent
  • No acknowledgement is issued
  • Failed message remains unconfirmed

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
  • Java 17+, the included JMS bridge and your provider's JMS JARs (not bundled) needed only for live connections; simulation uses fixtures
Selected for this closure by the same rules as runtime packaging.
Simulation fixtures
  • demo_jms jms · jms.receive, jms.send, jms.confirm
Every sample run replaces these connections with the fixtures defined in its case. A live run needs an operator to configure an authorized connection for each.
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
8ab4bad65541d204a7e9b8c3789b9d75ce9d0185d7e643b1e0eed85043a9dab9
Closure SHA-256
42ff6c3a47c8a9a62943b905919a9a181c0167ae157cc7da2f3784df7502f943
Runtime
1.27.0
Results
2/2 cases, 10/10 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/jms_order.json
  • server/integration/templates/jms_order_pipeline.json
  • server/integration/templates/normalize_order.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 jms_order
PYTHONPATH=. python scripts/export_public_gallery.py --check