Start building

Databases

JDBC · prepared transaction

Use a genuine Java JDBC worker with an operator-installed driver and registered prepared statements. This gallery run uses a transaction fixture. The repository test separately exercises real JDBC commit, rollback and decimal values.

  • JSON → Database (JDBC/SQL)
  • Advanced
  • 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 processJDBC · prepared transaction3 activities

Scroll sideways to see the whole flow.

Flow diagram of JDBC · prepared transaction3 activities and 2 transitions: Registered parameters, Insert + query in one transaction, Return database rows.Registered parametersstart1Insert + query in onetransactionjdbc.transaction2Return database rowsend
List the 3 activities and 2 transitions

Activities

  1. Registered parameters start
  2. Insert + query in one transaction jdbc.transaction
  3. Return database rows end

Transitions

  • Registered parameters → Insert + query in one transaction (on success)
  • Insert + query in one transaction → Return database rows (on success)

Walkthrough

  1. Registered parametersInstall your approved JDBC driver and configure its class and URL environment reference. The browser does not download drivers.
  2. Insert + query in one transactionChoose registered statement IDs and map named parameters; SQL text belongs to the operator profile.

What you will practise

  • Install your approved JDBC driver and configure its class and URL environment reference. The browser does not download drivers.
  • Choose registered statement IDs and map named parameters; SQL text belongs to the operator profile.
  • A local JDBC transaction commits the group or rolls back on error. It is not an XA transaction with a broker.

Sample cases

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

Insert Then Query

Passed

The real process engine runs with supplied sample input. Code and external operations use explicit fixtures in gallery simulation.

Expected result Verify the mapped output, successful completion and zero pending simulated receipts.

3/3 assertions

  • Scenario completes
  • Expected business result
  • No pending simulated messages

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
  • jdbc_demo jdbc · jdbc.transaction
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
5b796a75cbf7caf66175a6b52af45357f18f725bb755bbc007db3ab07fc87de1
Closure SHA-256
5ad7a62d5dc08815f02eb94287311a823d7a8aab1e54c4fbfc8ff87ad21d0317
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_transaction_lab.json
  • server/integration/templates/jdbc_transaction_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_transaction_lab
PYTHONPATH=. python scripts/export_public_gallery.py --check