Transform and map
JSON customer → normalized profile
Convert incoming JSON text into a validated customer profile. Map names and normalize the email with XPath, then render a clean JSON response.
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 - Parse customer JSON
json.parse - Validate customer
json.validate - Prepare customer profile
assign - Render profile JSON
json.render - Return profile
end
Transitions
- Start → Parse customer JSON (on success)
- Parse customer JSON → Validate customer (on success)
- Validate customer → Prepare customer profile (on success)
- Prepare customer profile → Render profile JSON (on success)
- Render profile JSON → Return profile (on success)
Walkthrough
- Parse & validateLoad JSON text and check the required customer properties.
- Map a profileConcatenate names and lowercase the email using XPath 1.0.
- Render JSONReturn a Unicode-safe profile response.
What you will practise
- Parse JSON before accessing its fields.
- Validate required fields and normalize a profile without AI calls.
Sample cases
2 cases with 7 assertions, run with python -m server.integration examples --all in simulation.
Valid customer
PassedAda’s profile is normalized using deterministic mappings.
Expected result A JSON profile for Ada Lovelace with lowercase email and ready: true.
4/4 assertions
- Process completes in simulation
- Full name is composed
- Email is lowercased
- Profile is ready
This sample run only; not a production certification.
Missing required ID
Expected failure verifiedRemove the required ID to demonstrate schema failure.
Expected result Validation fails before the profile is mapped. This is the expected outcome.
3/3 assertions
- Expected failure is recorded
- Schema validation fails
- Profile mapping never executes
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
c50803599669c425deff04cba003c63a79b84e2de1e733c1dbad5f43539905b7- Closure SHA-256
2982de17b0cbc17d8263c29ce9f8079821d316e855239704f14ee29626a46d1d- Runtime
1.27.0- Results
- 2/2 cases, 7/7 assertions, mode simulate, external calls: none.
- Files in the closure
server/integration/example_packs/customer_profile.jsonserver/integration/templates/customer_onboarding.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 customer_profile PYTHONPATH=. python scripts/export_public_gallery.py --check