Start building

Files, storage and batch

Stream, decompress and resume a batch

Simulation has a private temporary ledger. Live mode needs the documented persistent store and external keys.

  • JSON → JSON
  • Advanced
  • 10 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 processStream, decompress and resume a batch8 activities

Scroll sideways to see the whole flow.

Flow diagram of Stream, decompress and resume a batch8 activities and 7 transitions: Start, JSON Lines stream, Compress, Decompress, First two records, Resume remaining records, Inspect durable results, Return result.StartstartJSON Lines streamstream.from_binary1Compressstream.gzipDecompressstream.gunzipFirst two recordsbatch.processResume remainingrecordsbatch.processInspect durableresultsbatch.resultsReturn resultend
List the 8 activities and 7 transitions

Activities

  1. Start start
  2. JSON Lines stream stream.from_binary
  3. Compress stream.gzip
  4. Decompress stream.gunzip
  5. First two records batch.process
  6. Resume remaining records batch.process
  7. Inspect durable results batch.results
  8. Return result end

Transitions

  • Start → JSON Lines stream (on success)
  • JSON Lines stream → Compress (on success)
  • Compress → Decompress (on success)
  • Decompress → First two records (on success)
  • First two records → Resume remaining records (on success)
  • Resume remaining records → Inspect durable results (on success)
  • Inspect durable results → Return result (on success)
SubprocessPrepare one order3 activities

Scroll sideways to see the whole flow.

Flow diagram of Prepare one order3 activities and 2 transitions: Start, Prepare record, Return result.StartstartPrepare recordassignReturn resultend
List the 3 activities and 2 transitions

Activities

  1. Start start
  2. Prepare record assign
  3. Return result end

Transitions

  • Start → Prepare record (on success)
  • Prepare record → Return result (on success)

Walkthrough

  1. JSON Lines streamSimulation has a private temporary ledger. Live mode needs the documented persistent store and external keys.

What you will practise

  • Run the example in simulation and inspect recorded activity results.
  • Distinguish simulation assertions from live service qualification.

Sample cases

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

Safe simulation

Passed

Simulation has a private temporary ledger. Live mode needs the documented persistent store and external keys.

Expected result The process completes in simulation without connecting to external systems.

1/1 assertions

  • Simulation completed

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
c3c4070d45ea6e6cd7ca5cc0d56f0b5849f74e93bcd8d32c944d936caa75dd4e
Closure SHA-256
07b7f250b1be1d78bdaa7f615d71aba9bc6f1c932f4f13dd9247b8f5ce18b650
Runtime
1.27.0
Results
1/1 cases, 1/1 assertions, mode simulate, external calls: none.
Files in the closure
  • server/integration/example_packs/v21_stream_batch.json
  • server/integration/templates/v21_order_record.json
  • server/integration/templates/v21_stream_batch.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 v21_stream_batch
PYTHONPATH=. python scripts/export_public_gallery.py --check