Start building

Orchestration

Connected mapping · customer briefing

Connected mapping · customer briefing. Explicit variable scopes and deterministic mapping.

  • JSON → JSON
  • Intermediate
  • 4 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 processConnected mapping · customer briefing8 activities

Scroll sideways to see the whole flow.

Flow diagram of Connected mapping · customer briefing8 activities and 7 transitions: Start, Normalize customer, Set run campaign, Call price summary, Increment shared counter, Cooperative pause, Assemble briefing, End.StartstartNormalize customerassign1Set run campaignvariables.set2Call price summarycall_process3Increment sharedcountervariables.increment4Cooperative pausesleep5Assemble briefingdata.mapper6Endend
List the 8 activities and 7 transitions

Activities

  1. Start start
  2. Normalize customer assign
  3. Set run campaign variables.set
  4. Call price summary call_process
  5. Increment shared counter variables.increment
  6. Cooperative pause sleep
  7. Assemble briefing data.mapper
  8. End end

Transitions

  • Start → Normalize customer (on success)
  • Normalize customer → Set run campaign (on success)
  • Set run campaign → Call price summary (on success)
  • Call price summary → Increment shared counter (on success)
  • Increment shared counter → Cooperative pause (on success)
  • Cooperative pause → Assemble briefing (on success)
  • Assemble briefing → End (on success)
SubprocessPrice summary · reusable subprocess3 activities

Scroll sideways to see the whole flow.

Flow diagram of Price summary · reusable subprocess3 activities and 2 transitions: Start, Read global currency, End.StartstartRead global currencydata.mapperEndend
List the 3 activities and 2 transitions

Activities

  1. Start start
  2. Read global currency data.mapper
  3. End end

Transitions

  • Start → Read global currency (on success)
  • Read global currency → End (on success)

Walkthrough

  1. Normalize customerInspect the activity and map its explicitly scoped input.
  2. Set run campaignInspect the activity and map its explicitly scoped input.
  3. Call price summaryInspect the activity and map its explicitly scoped input.
  4. Increment shared counterInspect the activity and map its explicitly scoped input.
  5. Cooperative pauseInspect the activity and map its explicitly scoped input.
  6. Assemble briefingInspect the activity and map its explicitly scoped input.

What you will practise

  • Map upstream activity outputs without waiting for live runs.
  • Keep global, run-local and shared state separate.
  • Run a safe simulation without activating any listener.

Sample cases

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

Sample input

Passed

A complete deterministic simulation with isolated shared state. Sleep is skipped in simulation.

Expected result All fields match the scoped mapping result.

2/2 assertions

  • Successful simulation
  • Mapped output

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
None beyond the base runtime.
Simulation fixtures
None: no activity in this template uses a connector.
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
7e2f7ab294f2bf94cd655e7b81415773e21a71df304b0d201d3d3c178d63a265
Closure SHA-256
51c2e655505208136a2ee0a62fbb5be8dcb43f435e906abe2a785403158b66c1
Runtime
1.27.0
Results
1/1 cases, 2/2 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/connected_context_lab.json
  • server/integration/templates/connected_context_lab.json
  • server/integration/templates/context_price_child.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 connected_context_lab
PYTHONPATH=. python scripts/export_public_gallery.py --check