Designer graph -> downloadable project.zipCode button and ZIP download
The Code button on the Project page generates the current graph and downloads the complete generated project as a ZIP archive.
When to use
Use this workflow when you are ready to turn the current designer model into a local source workspace or obtain a new archive for regeneration.
Behavior
- Open the Project page and press
Code. The designer serializes the current in-memory project model, including services, streams, links, types, connectors, endpoints, pools, modules and project settings. - The model is sent to the authenticated Service Architect generation endpoint with
POST /service_architect/generateCode. A persistent progress dialog remains visible while generation is running. - ServiceGen validates the submitted graph and builds the complete multi-service workspace described in this section. The result is packaged as a ZIP archive.
- The API response carries the archive body as base64 data together with response headers. The browser decodes it into an
application/zipBlob and starts a normal file download automatically. - The download filename comes from the server
Content-Dispositionheader. If that header does not provide a filename, the designer usesdownload.zip. - A successful download displays a success notification. Validation, generation, authentication and response errors are displayed in the designer instead of downloading an incomplete archive.
First download and regeneration
For a new project, extract the ZIP and use its root Makefile as the command entrypoint. For an existing project with implemented business files, keep the new ZIP intact and pass it to make merge-check and make merge so generator ownership rules can preserve user-owned files.
Code button workflow
Observable stages in the designer and downloaded result.
CodeDesigner actionStarts generation from the current in-memory graph.
AuthenticationAccessOpens sign-in when there is no authenticated session, then resumes the pending generation request.
Generating CodeProgressPersistent modal shown while the generation request is running.
Graph validationBackendRejects invalid topology, contracts, settings or unsupported backend features before packaging.
ZIP packagingBackendCreates the complete project directory tree selected by the graph.
Content-DispositionFilenameSupplies the archive filename; the browser falls back to download.zip when absent.
Browser downloadResultCreates an application/zip Blob and downloads it through the browser download manager.
Using the downloaded archive
# First generation
unzip <generated-project>.zip
cd <generated-project>
make init
make build
# Regenerating an existing workspace
make merge-check ARCHIVE=../<generated-project>.zip
make merge ARCHIVE=../<generated-project>.zip
make merge-validate