Skip to content
Development preview · 2.0.0-SNAPSHOT

Versions and data integrity

This page explains component versions, stored record identifiers and formats, and the data needed to resume a Run after restart. See Supported surfaces for public APIs, extension points, and deployment options.

Use the CompileFlow BOM to align Engine, Deploy, Durable, Spring integrations, and database Providers. Deploy the Workbench frontend and Server from the same release.

Corrections to a published artifact require a new release. Each published release keeps its original artifacts, checksums, and provenance.

Area What it defines
Java API and SPI Resource ownership, lifecycle, results, errors, and extensions
Process formats File syntax and execution rules, including types, Actions, loops, parallel execution, and process calls
Deploy protocol Artifact identity, publication, revision-checked routes, and routing updates
Durable Persisted execution state, recovery, Waits, Effects, and Outbox events
Configuration Defaults, limits, precedence, validation, and component selection
Monitoring Metric names, types, units, tags, and scope
Workbench Server OpenAPI The HTTP contract shared by the matching frontend and server

Library versions, process coordinates, content digests, and storage format markers serve different purposes:

Identifier Meaning
CompileFlow release version A matching set of libraries, integrations, and packaged applications
Process version coordinate A name bound to one immutable definition or artifact
Exact definition digest Identity of model type, process code, and original definition bytes
Artifact digest Definition digest plus sorted direct exact call-site bindings; not a recursive closure hash
Deploy protocol schema The exact structure accepted by current Deploy readers and writers
Durable CFD/v1, CFRC/v1, and creation format 1 Encodings for stored values, recovery state, and Run creation records
Database migration version The schema baseline required by one product and Provider
Workbench companion release The frontend/server pairing

Readers verify the format marker and required fields before decoding. Unknown markers, missing required fields, and malformed values fail validation.

The same-version recovery path reads committed values using the same limits and type rules as the writer. Tests also check fixed byte and digest values to catch format changes that a round trip can miss.

Keep all Durable clients and workers that write to one Store on the same CompileFlow release unless the target release explicitly documents mixed-version operation. A format marker is not a promise of cross-release recovery. Before upgrading, stop all writers, back up the complete Store and its migration history, and follow the target release’s documented migration and recovery requirements. If no supported migration path is documented, do not resume old persisted Runs with the new release.

The database modules for Deploy, Durable, and Workbench Server ship the SQL that initializes an empty database. With the supplied Spring Boot integrations, startup checks migration history, checksums, and pending scripts through Flyway. Each database implementation performs its documented additional checks: for example, Durable validates required database objects, and PostgreSQL Deploy checks that its tables are logged. Plain Java applications must arrange the corresponding migrations and validation themselves.

The supplied Spring Boot integrations fail application startup if the database does not pass those checks. Recreating the database requires an explicit operator action.

Each product owns its schema history and permissions. Apply schema changes with provisioning credentials. Verify the resulting schema with application credentials and exercise constraints and transactions on each supported database.

An accepted execution keeps its identity and selected content. Durable saves the exact definitions, call graph, recovery position, and the request and version selection recorded at startup. Later Alias changes or publication must not redirect that Run to different content.

Recovery uses the application’s class loader, declared types, Actions, and script executors. The application must provide the capabilities required by the saved Run and the types required to read its retained results. Missing capabilities can cause admission or result queries to fail, or make an existing Run retry after runtime-readiness backoff. See the Durable guide for the specific operation.

Retries, lease renewal, and delivery attempts retain the original execution or operation identity, but external requests may be sent more than once. The application still needs deduplication or reconciliation using stable identifiers. Preserve Run IDs, occurrence IDs, event IDs, request fingerprints, committed results, and the binding of each Wait token to its saved Wait occurrence. Retention does not make an identity reusable or prove an operation never happened.

Route and operator mutations check revisions. Turn and work-scheduling commits check lease tokens, preventing stale execution authority from authorizing new work or progress updates. Late evidence from an already begun Effect may still be retained under its original attempt and conflict checks; this does not restore the old lease. Timestamps help diagnose problems but cannot replace these checks. Requesting cancellation, reaching a shutdown deadline, and a task actually stopping are separate events.

When converting a process between TBBPM and BPMN, check when loop conditions are evaluated and what happens at the iteration limit. Check defaults, missing and null values, numeric precision, result mappings, and parallel failures as well. See Process formats.

Several extension implementations can be installed together. The engine first discovers them and then applies the documented selection rules. See the extension guide.

Workbench /api/** is shared by the frontend and server from the same release. Retries and recovery use the saved asynchronous inputs and exact route. The request fingerprint is used to deduplicate submissions, not to select a route again. An asynchronous attempt with undecodable input or routing data is dead-lettered without executing business actions in that attempt. A detail read distinguishes an absent result from a malformed saved result: an absent result is omitted without a result decoding error, while a malformed result is omitted and reported in payloadErrors.resultJson. If a readable result contradicts the admitted route, it retains the result and reports the same diagnostic field. Malformed persisted routing is reported separately as payloadErrors.routingJson, with no routing snapshot. Check payloadErrors before using the result. A persisted success status alone does not establish result integrity. The asynchronous request parameters themselves are stored as JSON; protect the Store and its backups according to the sensitivity of that data.

Query cursors continue pagination; they are not Run identities or authorization credentials. Metrics must describe the documented scope and units, with bounded tag cardinality. Automation should consume structured error codes rather than log wording; see Monitoring.

Use the checks relevant to your change. The testing guide shows how to run them.

  • Check round trips, fixed samples, size limits, and rejection of unknown or malformed state.
  • Reopen saved data and exercise restart recovery, live Waits, unfinished Effects, and retained terminal results where the change affects them.
  • On the relevant Store, check commit and rollback, rejection of stale revisions and leases, and retention of the original start request across retries.
  • Verify clean schema initialization, validation of the current schema, and rejection of unsupported schemas.
  • When packaging or dependencies change, run a standalone application against the built artifacts.