Results and Export Pipeline

Results and Export Pipeline A data-flow diagram generated by Archify. 01 / Stored data 02 / Conversion 03 / Intermediate 04 / Writers 05 / Delivery Stored submissions · poll_id · result · version · 01 / Stored data · per survey Stored submissions poll_id · result · version per survey Form version schema · labels · pages · types · 01 / Stored data · latest version Form version schema labels · pages · types latest version SurveyConverter · typed items + attachments · 02 / Conversion · converters/ SurveyConverter typed items + attachments converters/ Markdown IR · one intermediate document · 03 / Intermediate · format neutral Markdown IR one intermediate document format neutral PDF & Office · pdf · docx · xlsx · 04 / Writers PDF & Office pdf · docx · xlsx Text & data · text · md · html · csv · json · 04 / Writers Text & data text · md · html · csv · json Downloads · @@download-result · bulk · 05 / Delivery Downloads @@download-result · bulk Mail attachment · @@mail-result · mail action · 05 / Delivery Mail attachment @@mail-result · mail action POST webhook · @@post-result · raw payload · 05 / Delivery POST webhook @@post-result · raw payload submission payload stored record field labels form schema blocks typed items files writers files writers file attachment raw payload, no export post action export mail action Legend primary data async batch data store data flow

One intermediate document

  • • The stored payload and the current form schema are collected first
  • • A single Markdown document is the source for every format writer
  • • Attachments from file-upload questions travel with the export

Nine formats, two writer groups

  • • PDF, DOCX and XLSX are rendered from the same blocks as text and CSV
  • • Markdown selected for mail is replaced by PDF silently
  • • Bulk exports always use JSON or CSV, never a single-submission format

Delivery is explicit

  • • Downloads and mail carry a rendered export
  • • POST forwards the raw submission plus the form schema, without an export
  • • Every path is permission-checked: editors and Managers only