Start building

Databases

Two databases → mapped SMTP notification

Choose two distinct named JDBC bindings and an independent SMTP relay. Simulation uses explicit registered-statement and mail-acceptance fixtures; no email is sent.

  • Database (JDBC/SQL) → Email (SMTP)
  • Advanced
  • 6 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 processTwo databases → mapped SMTP notification6 activities

Scroll sideways to see the whole flow.

Flow diagram of Two databases → mapped SMTP notification6 activities and 5 transitions: Customer request, CRM database · customer lookup, Billing database · balance lookup, Compose plain-text notification, Send via notification relay, Return relay acceptance, not delivery.Customer requeststart1CRM database ·customer lookupjdbc.query2Billing database ·balance lookupjdbc.query3Compose plain-textnotificationdata.mapper4Send via notificationrelaysmtp.send5Return relayacceptance, not…end
List the 6 activities and 5 transitions

Activities

  1. Customer request start
  2. CRM database · customer lookup jdbc.query
  3. Billing database · balance lookup jdbc.query
  4. Compose plain-text notification data.mapper
  5. Send via notification relay smtp.send
  6. Return relay acceptance, not delivery end

Transitions

  • Customer request → CRM database · customer lookup (on success)
  • CRM database · customer lookup → Billing database · balance lookup (on success)
  • Billing database · balance lookup → Compose plain-text notification (on success)
  • Compose plain-text notification → Send via notification relay (on success)
  • Send via notification relay → Return relay acceptance, not delivery (on success)

Walkthrough

  1. Customer requestThe CRM lookup and billing lookup use different logical JDBC connections. Select a binding and its registered statement; credentials are never in the flow.
  2. CRM database · customer lookupMap values from both query outputs into a notification. JDBC driver vendor and network permissions are operator configuration.
  3. Billing database · balance lookupSend only through the selected SMTP relay and its recipient allowlist. Gallery simulation sends no email; acceptance by a relay is not delivery.
  4. Compose plain-text notificationSend only through the selected SMTP relay and its recipient allowlist. Gallery simulation sends no email; acceptance by a relay is not delivery.
  5. Send via notification relaySend only through the selected SMTP relay and its recipient allowlist. Gallery simulation sends no email; acceptance by a relay is not delivery.

What you will practise

  • The CRM lookup and billing lookup use different logical JDBC connections. Select a binding and its registered statement; credentials are never in the flow.
  • Map values from both query outputs into a notification. JDBC driver vendor and network permissions are operator configuration.
  • Send only through the selected SMTP relay and its recipient allowlist. Gallery simulation sends no email; acceptance by a relay is not delivery.

Sample cases

1 case with 3 assertions, run with python -m server.integration examples --all in simulation.

Compose a balance notification

Passed

Run the actual deterministic flow with supplied data. External connector effects use fixtures only.

Expected result Validate the exact output and successful execution without external services.

3/3 assertions

  • Successful simulation
  • Expected output
  • No pending receipts

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 JDBC bridge and your vendor JDBC driver (not bundled) needed only for live connections; simulation uses fixtures
Selected for this closure by the same rules as runtime packaging.
Simulation fixtures
  • billing_database jdbc · jdbc.query
  • crm_database jdbc · jdbc.query
  • notification_relay smtp · smtp.send
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
a4f0ef764e8f565ba275130c01f57017d23000674a083e60da3b30a0397970a6
Closure SHA-256
00b23b61d7dec5867c6b23245b3caa980f64f895e49884ad4b404f3df9a5c6d3
Runtime
1.27.0
Results
1/1 cases, 3/3 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/jdbc_smtp_notification_lab.json
  • server/integration/templates/jdbc_smtp_notification_lab.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 jdbc_smtp_notification_lab
PYTHONPATH=. python scripts/export_public_gallery.py --check