Start building

Event starters

Kafka starter · process then commit

Start a saved process from KAFKA. Gallery simulation supplies an event envelope directly and does not activate a listener or contact external systems. Export and explicitly activate the configured starter on approved infrastructure.

  • Kafka → JSON
  • 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 processKafka starter · process then commit4 activities

Scroll sideways to see the whole flow.

Flow diagram of Kafka starter · process then commit4 activities and 3 transitions: Kafka starter · process then commit, Parse event body, Normalize order result, Validated business result.Kafka starter ·process then commitstart1Parse event bodyjson.parse2Normalize order resultdata.mapper3Validated businessresultend
List the 4 activities and 3 transitions

Activities

  1. Kafka starter · process then commit start
  2. Parse event body json.parse
  3. Normalize order result data.mapper
  4. Validated business result end

Transitions

  • Kafka starter · process then commit → Parse event body (on success)
  • Parse event body → Normalize order result (on success)
  • Normalize order result → Validated business result (on success)

Walkthrough

  1. Kafka starter · process then commitChoose the source on the existing Start node, not a second receiver inside the process.
  2. Parse event bodyPreview and map the event envelope. Test the business flow with a supplied event without connecting to a broker.
  3. Normalize order resultSaving does not subscribe. Continuous sources require explicit live activation and durable journals; REST is served by the application runtime.

What you will practise

  • Choose the source on the existing Start node, not a second receiver inside the process.
  • Preview and map the event envelope. Test the business flow with a supplied event without connecting to a broker.
  • Saving does not subscribe. Continuous sources require explicit live activation and durable journals; REST is served by the application runtime.

Sample cases

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

Sample Event

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
Kafka consumer on connection kafka_demo. The gallery never activates it; sample runs pass the case input directly.
Optional dependencies
  • The optional Kafka driver (requirements-kafka.txt) needed only for live connections; simulation uses fixtures
Selected for this closure by the same rules as runtime packaging.
Simulation fixtures
No activity uses a connector. The starter's connection kafka_demo is never opened in simulation; sample runs pass the case input directly.
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
ef3421deae37b5c257923ae8b6bd824214748290797f2ace15b87e07decf1ca7
Closure SHA-256
a8c70d082b257f54a0d6a7c69218ce314e48be363194f23a1acf0d98a52fef35
Runtime
1.27.0
Results
1/1 cases, 3/3 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/kafka_starter_lab.json
  • server/integration/templates/kafka_starter_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 kafka_starter_lab
PYTHONPATH=. python scripts/export_public_gallery.py --check