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.
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 6 activities and 5 transitions
Activities
- Start
start - JMS Queue Receiver
jms.receive - Normalize order
call_process - JMS Queue Sender
jms.send - Confirm Message
jms.confirm - 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)
Scroll sideways to see the whole flow.
List the 7 activities and 6 transitions
Activities
- Start
start - Parse order XML
xml.parse - Validate order XSD
xml.validate - Normalize with XSLT
xml.xslt - Parse normalized XML
xml.parse - Map to JSON object
assign - 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
- Receive fixture messageThe queue is simulated with a supplied XML TextMessage fixture.
- Call the normalization flowThis example installs its own isolated child process.
- Send a responseInspect the simulated sender’s input body in the trace.
- 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
PassedThe 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 verifiedA 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
- Simulation fixtures
demo_jmsjms · jms.receive, jms.send, jms.confirm
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.jsonserver/integration/templates/jms_order_pipeline.jsonserver/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