TI-Flow Engineering Foundation

Distributed healthcare workflows: what happens on failure or migration?

Interrupted steps, state transitions and recovery make ownership an integration concern. The independent Distributed BPMN Engine provides a distributed workflow foundation with stable logical placement, localized execution, explicit ownership and controlled recovery semantics. MEMM is a separate Matrix Enterprise Middleware Module; connections to TI-Flow interfaces require project-specific integration adapters and verification. The published TI-Flow_26_3 is an external comparison reference with an open requirements/test delta. Neither product thereby becomes an approved TI-Flow service, nor does this establish HCC, ZETA or FHIR conformance.

Architecture at a glance

Runtime and service contract.

Defined externally TI-Flow service contract

Operations · FHIR profiles · Task states

Map and verify for each project

Separate BPMN product Distributed BPMN Engine
Logical placement
Assign the workflow to a defined execution owner.
Local execution
Manage state within the named execution boundary.

Execute only with clear ownership.

The independent BPMN runtime provides the distributed execution foundation. MEMM is a separate integration boundary; neither runtime state nor integration implies a service-confirmed Task state or proof of the external TI-Flow contract.
Published comparison reference: TI-Flow_26_3 is used to classify surrounding service, HCC, ZETA and FHIR contexts. It is not treated as an approval or conformance statement.
External specification reference: TI-Flow_26_3 (02.10.2026) · Versioned source for the integration contracts described on this page. Historical development baseline: Draft_TI-Flow_26_2 (30.06.2026).
Process in four steps

From a draft to an activated prescription.

The primary system prepares the request. The external TI-Flow service owns the Task status. Only its successful activation response confirms ready.

  1. $create

    Create the draft

    The service returns Task ID, PrescriptionID and AccessCode. The primary system retains the protected request context.

    Task: draft
  2. Prepare + QES

    Prepare and sign the document

    The primary system uses the PrescriptionID in the prescription bundle. The healthcare professional signs through the connector; signed content remains unchanged.

    Task: draft
  3. $activate

    Request activation

    Task ID, AccessCode and the unchanged signed document reach the service through the defined activation request.

    local: response pending
  4. Service response

    Confirm the new status

    The service checks the activation request. A successful response returns the Task with status ready.

    Task: ready
draftready

Success is a confirmed state change

Sending a request does not itself activate the Task. The service’s successful response establishes the result.

No clear response? Keep the outcome open.

A timeout does not prove draft or ready. Reconcile the state through the permitted operation-specific interface before deciding how to continue. Do not blindly repeat the request.

Illustrative reading guide to the external TI-Flow context. This page executes no prescription workflow. Participants, messages and detailed boundaries follow in the BPMN models.

Runtime Foundation

Distributed BPMN execution with clear logical boundaries.

The implemented foundation is described publicly at architecture level: stable logical boundaries, local consistency, explicit distributed views and controlled ownership changes.

01

Logical placement boundary

Workflow identity stays decoupled from the current physical distribution. The website describes this product boundary without internal execution detail.

02

Localized execution

State changes remain bound to a named local consistency and ownership boundary.

03

Explicit distributed reads

Cluster-wide views are deliberate distributed read operations rather than hidden global write semantics.

04

Fail-closed ownership

Unclear or contradictory routing state is not hidden behind a silent global default path.

05

Recoverable ownership transfer

Ownership changes are controlled and verifiable operating actions.

≠

Not a business data boundary

The technical placement boundary does not automatically define medical, accounting, privacy or tenant boundaries.

BPMN 2.0 · TI 2.0 context

TI-Flow in BPMN collaboration models — with MEMM Headless as a separate product boundary.

The models combine publicly documented TI-Flow context with the public MEMM product boundaries. These illustrative BPMN 2.0 XML models (isExecutable=false) map integration roles and product boundaries. The normative TI-Flow process definition remains with the respective Fachdienst.

Public TI-Flow Context

E-prescription: $create and $activate as two separate BPMN interactions.

The models use the publicly documented TI-Flow operations POST /Task/$create and POST /Task/<id>/$activate. The MEMM boundary remains an illustrative integration mapping; the external TI-Flow service is the normative reference context.

01

$create: create a Task in draft with an AccessCode.

The primary system submits the workflowType. On success, the service returns a Task in draft with the Task ID, PrescriptionID and AccessCode. The Task ID equals the PrescriptionID; keep the AccessCode in the protected integration context.

Download BPMN 2.0 XML ↓
BPMN model for the E-prescription Task create request-response path between a primary system, MEMM integration boundary and TI-Flow service

↔ Swipe horizontally to view the complete BPMN model.

02

$activate: activate a Task from draft to ready with AccessCode and QES.

The primary system creates a profile-conformant prescription bundle containing the returned PrescriptionID. The healthcare professional performs QES through the connector signature operation. The adapter wraps the unchanged signed document as an ePrescription Binary in a Parameters request. The call carries the Task ID in the URL and the AccessCode in the X-AccessCode header or ?ac parameter. Success returns the Task in ready; FHIR error responses are evaluated as an OperationOutcome.

Download BPMN 2.0 XML ↓
BPMN model for the E-prescription Task activate request-response path between a primary system, MEMM integration boundary and TI-Flow service

↔ Swipe horizontally to view the complete BPMN model.

BPMN semantics: $create and $activate are deliberately modelled as independent interactions. The Task ID/PrescriptionID and AccessCode from the first path are input context for the second. The state transition follows successful validation by the service. After signing, the adapter changes neither the signed content nor the signature object. MEMM Headless remains a separate communication boundary.

State Authority · Workflow

BPMN execution is internal; FHIR Task remains externally authoritative.

A BPMN engine may orchestrate internal business steps. It does not replace TI-Flow Task identifiers, flowtype-specific operations or normative state transitions. These are architectural safeguards to implement and test, not a claim that the complete service exists.

BPMN / Rust runtime

Internal command planning, durable orchestration, ownership, timers and recovery. No independently authoritative FHIR status.

Versioned FHIR adapter

Maps a business intent to an allowed, version-pinned FHIR operation. Records operation identity, request context, server response and validation errors.

TI-Flow Fachdienst

Authoritative outcome for server-side Task lifecycle. A rejected, timed-out or ambiguous request must never be silently recorded as a successful transition.

Reconciliation / outbox

A timeout leaves the outcome unknown. Retry, failover and state reconciliation follow the specific TI-Flow operation and published error-handling rules. A repeated call may be part of that procedure; a universal retry or read-first rule is not implied.

Illustrative outcomes: success → record the confirmed Task; rejection → preserve the error and last confirmed state without assuming the remote Task is unchanged; timeout → keep the outcome unknown until operation-specific resolution. These are architecture rules, not verified product behaviour.

FHIR · ZETA · HCC · Evidence

Normative responsibilities remain separately testable.

FHIR validation

The service validator combines CoreImage and gematik FHIR configuration in an isolated OCI ValidatorImage. Packages, expanded terminology and differential-generated snapshots are fixed at build time. An inconsistent configuration aborts the build; runtime access to external registries or terminology servers is prohibited. Results must match the reference validator. The separate client-validation interface serves development and integration; production FD $validate remains unexposed.

ZETA Client / Guard

Application-owned policy checks do not supersede ZETA access decisions. Client-side OAuth, keys, tokens, session and attestation duties must be assessed separately from Guard and service functions.

HCC / VAU

Shard-local execution and Rust memory safety do not provide HCC attestation, key custody, trusted execution or authorization to operate a Fachdienst by themselves.

Proof and scope

An external requirement is closed only with version, responsible component, test procedure, reproducible result and reviewer decision. Owner statements and visual BPMN models are not substitutes.

Normative Reference · gematik

Service: product and provider

External gematik documents for architecture comparison. Listed profiles do not identify ITL as an approved manufacturer or operator.

PTV · Released02.10.2026

gemProdT_TI-Flow-FD_PTV_1.0.0-0_V1.0.0 ↗

Product profile for the TI-Flow service: normative product scope, not covered by BPMN alone.

TI-Flow_26_3Type 1.0.0-0 · Doc 1.0.0

Architecture boundary: FHIR service / HCC and ZETA boundary

ATV · Released02.10.2026

gemAnbT_TI-Flow_FD_ATV_1.0.0-0_V1.0.0 ↗

Provider profile: obligations for the TI-Flow service operator, separate from manufacturer and runtime.

TI-Flow_26_3Type 1.0.0-0 · Doc 1.0.0

Architecture boundary: TI-Flow service operations

Requirement explanations follow the named external specifications; implementation and formal acceptance need separate, release-bound proof.

Requirements in context

What the specifications mean for this architecture.

Selected requirements with a fixed source version. Open a topic for its responsibility, interface or data boundary.

Three roles for an HCC service

The TI-Flow service manufacturer is the HCC workload manufacturer: it develops, tests, documents and registers the workload release. The service provider acts as HCC service provider: it integrates the service into its tenant context and is responsible for operations, monitoring and support. The HCC provider supplies the platform and HSM cluster, its provider-specific Trust-Domain Build Service (TDBS), and the Trust-Domain Configuration & Attestation Service (TDCAS). The overarching TI Verification & Build Service is gematik’s responsibility and incorporates the provider-specific build services. Organisations may combine roles while retaining each role’s obligations.

Workload, attestation and configuration

OCI-conformant workload images are supplied for the Trust-Domain Build Service. The service obtains HSM access credentials from the Trust-Domain Attestation Service. A workload loads configuration at startup and must support re-instantiation and attestation for changes. Arbitrary privileged runtime administration is excluded; predefined application actions and policy administration remain possible within the specified boundaries.

VAU, persistence and client ingress

The TI-Flow service processes every business operation inside the VAU. Protected data is encrypted before storage outside the VAU; persistence keys are obtained from an HSM of the HCC platform. The ZETA Guard is the sole entry point for client requests. Client-to-Guard transport uses TLS and ASL; if Guard and resource server run in separate VMs, their connection uses mTLS without added ASL. Each operation also enforces its business authorisation. A Headless client’s E2EE boundary and the service-side VAU are distinct protection contexts.

Persistence keys and certificate validation in TI-Flow

A_29714 requires either a separate key per persisted process or a key change at least once per second, so that only processes newly created within that second share a key. A_29715 binds key retrieval to the HCC platform HSM. The specification marks a possible future replacement of A_29714 as an open issue; this does not change the current requirement. Under A_29732, actively used certificates are checked for integrity and authenticity. Workflows that depend on a certificate must be rejected unless validation succeeds; every public key used must be traceable to successful certificate validation.

System logs and pseudonymisation

Sensitive information is removed before a system-log entry is stored. Permitted purposes are incident-driven error analysis and correction, and security monitoring. Error-analysis logs must be deleted without delay after the error is resolved; security-monitoring logs after three months. For gematik log data, plaintext key_pn_log is processed exclusively inside the VAU and introduced under dual control; this particular key does not have to be stored in the VAU HSM.

Operational responsibility for the whole service

HCC services support multiple instances on different hosts so that host changes or restarts do not interrupt the service. The HCC service records error and performance data for cloud-service calls; the HCC service provider monitors and manages capacity and tests HCC-stack changes before production use. The TI-Flow provider also meets its ATV and service-specific performance requirements. gemSpec_Perf 2.88.0 makes the provider duties concrete: A_29788 requires 99.99% availability during main service hours and 99.97% during off-peak service hours, within the defined service periods. A_29790 requires the specified Medication transfers within twelve hours unless technical errors in the ePA record system prevent them; A_29791 requires sending push notifications to the gateway within 60 minutes after event generation when the gateway is reachable. These normative targets require evidence from the specific service operation. A local readiness signal describes only part of this operational picture.

$create: Task, PrescriptionID and AccessCode

The prescribing primary system sends workflowType to POST /Task/$create. The service checks the permitted healthcare-organisation role in zeta-user-info.professionOID and the input, generates the AccessCode and, on success, returns a Task in draft. Task.id equals the PrescriptionID. Both identifiers and the AccessCode form part of the subsequent activation context; protect the AccessCode. An internal BPMN process has no independent authority over that Task status.

$activate: preserve the signature, check access and state

The primary system creates the profile-conformant prescription bundle with the returned PrescriptionID. The healthcare professional performs QES through the connector signature operation, using enveloping CAdES with an embedded OCSP response; authoredOn and QES creation must fall on the same date. The adapter preserves the content and signature object and wraps the signed data as an ePrescription Binary in Parameters. POST /Task/<id>/$activate requires the Task ID, AccessCode in X-AccessCode or ?ac, and the QES data. The service checks the role, AccessCode, initial draft state, signature, PrescriptionID and profile, among other conditions. Success returns Task.status = ready. FHIR error responses remain identifiable as OperationOutcome. The service’s own certificate and revocation checks, including any required OCSP addition, remain separate from the adapter’s task.

Resolve unknown outcomes under the specific operation rules

Retries and client failover follow published error handling and the specific operation. A264 distinguishes, among other cases, 4xx except 408/429 (no retry), 429 (hourly, at most ten retries) and 502/506 (retry only with client failover, at most ten retries). Both outer HTTP and inner ASL status are considered. A timeout initially leaves the outcome unknown. A rejected subsequent request does not prove that the remote Task is unchanged from its last confirmed state. For a lost $activate response, the Core IG describes repeating the call; its explanatory client note mentions 403, whereas server status requirement A175 specifies 412. That source discrepancy remains explicit and unresolved. The architecture derives neither a universal error code nor a blanket retry rule from it.

Normative validator: OCI, configuration and offline operation

The manufacturer supplies a CoreImage, combined with gematik FHIR configuration to build an OCI ValidatorImage. Packages, rules, expanded terminology and differential-generated snapshots are bound at build time. An implausible or inconsistent configuration must abort the build. Runtime connections to external package registries or terminology servers are prohibited. The component must be technically isolated and match the reference validator results; a proprietary validator is possible with that result equivalence. Internal integration may use REST or an internal protocol. The Fachdienst does not expose $validate to clients; the separate ClientValidationServer serves development and integration. Operational logs exclude the validated payload.

TI-Flow: profile validity per resource and reference time

An internal mapper pin does not determine which external profile version is valid. The TI-Flow service selects the normative reference time for each resource, such as MedicationRequest.authoredOn or MedicationDispense.whenHandedOver, and evaluates it against the current FHIR configuration. Dates and times without a time zone use German time (CET/CEST) applicable on that date. The Core IG requires exactly one meta.profile entry when mandatory, and a major.minor canonical version for generated resources; the full package version remains separately recorded. Rules for client fullUrl values, resolvable references and profiled extensions also apply. An optional pre-check does not remove these resource-creation rules.

ePA Medication: a separate asynchronous transfer

The TI-Flow Fachdienst transfers data for flowtypes 160, 166, 169, 200 and 209 to the ePA Medication Service asynchronously. Success of the original client call therefore does not confirm ePA ingestion. The Fachdienst maps prescription and dispensation data to the ePA profiles and uses the defined provision and cancellation operations. TI-Flow E-Rezept 2.0.0 governs triggering and mapping; ePA Medication 1.3.5 supplies the distinct data and interface contract. These roles require assessment separately from a general ePA FdV integration.

Editorial source review: 17 October 2026. The mapping explains requirements; implementation verification and product approval have their own evidence.

Product · Provider · Execution

Five boundaries; one cannot replace the others.

01

BPMN / Rust core

Internal orchestrator; not independently authoritative for remote FHIR Task state.

02

FHIR contract & validator

Versioned operation and profile behaviour; unknown outcomes require reconciliation.

03

TI-Flow FD product · PTV

Externally specified Fachdienst behaviour and independent product evidence.

04

HCC / VAU / ZETA

Trust, cryptography, attestation and network boundaries assessed separately.

05

FD operator · ATV

Operating organisation and obligations evaluated for the assigned provider role.

Static architecture overview; BPMN execution and Fachdienst status are described in their respective product contexts.

TI-Flow_26_3 · FHIR IG

Profile families are separately versioned and validated.

Release-index references, not a coverage statement for MEMM. Operation, validation and version compatibility must be reviewed per IG and test.

common

TI Common

FHIR IG 1.4.0

Common FHIR building blocks for TI services; service-specific IGs reference profiles, terminology and shared rules as needed.

Official source ↗
core

TI-Flow Core

FHIR IG 2.0.0

Cross-workflow Task operations, role checks, state, error handling and FHIR validation between clients and the TI-Flow Fachdienst.

Official source ↗
rx

E-Rezept

FHIR IG 2.0.0

Medication prescription and dispensing across prescribing primary systems, pharmacies, insured users and the service; also mapping and asynchronous transfer to ePA Medication.

Official source ↗
bfarm

BfArM

FHIR IG 2.0.0

Separate transfer contract from the TI-Flow Fachdienst to the BfArM web service for the digital E-T-Rezept copy to the T-register; prescription workflow 166 remains in the E-Rezept IG.

Official source ↗
diga

DiGA

FHIR IG 2.0.0

Workflow 162: prescribers create a DiGA prescription, insured users assign it to the payer, and the payer provides an activation code or a reasoned response.

Official source ↗
chargeitem

ChargeItem

FHIR IG 2.0.0

Private-insurance billing information for E-Rezept: the pharmacy system supplies data; the service and authorised clients manage ChargeItem, Consent and related communication. Billing outside the service is outside this IG.

Official source ↗
epa-medication

ePA Medication Service

FHIR IG 1.3.5

Separate ePA data and interface contract for medication lists and plans. TI-Flow acts as a calling system for its asynchronous transfer; a successful TI-Flow request does not confirm ePA ingestion.

Official source ↗
Execution model

Local consistency for state changes. Explicit semantics for distributed views.

Write / Execution

  • state changes remain bound to a valid local ownership boundary
  • unclear ownership is rejected explicitly
  • business and security context stays part of the execution boundary
  • public statements remain limited to execution and responsibility semantics

Read / Operate

  • cluster-wide views are explicit distributed reads
  • unavailable sources are not silently presented as a complete result
  • public statements remain limited to outcome and responsibility semantics
  • the read view does not imply a global write transaction
Migration safety

Recoverable ownership transfer instead of implicit infrastructure switching.

An ownership change is a controlled, verifiable operating action. The public description stays at responsibility, consistency and recovery level.

Explicit transfer

Ownership does not change as a silent side effect of infrastructure change.

Verifiable state

An incomplete or contradictory transfer is not treated as a successful change.

Recovery boundary

Interruption remains a controlled recovery state and is not presented as a successful ownership change.

TI-Flow_26_3 · 02.10.2026

The runtime is a foundation. TI-Flow_26_3 has a broader normative scope.

The published TI-Flow_26_3 release of 2 October 2026 contains the Fachdienst 1.0.0 and HCC 1.0.0 specifications, onboarding documentation, product/provider profiles, the TI-Flow FHIR IGs 2.0.0, TI Common 1.4.0 and ePA Medication 1.3.5. Those layers are not automatically derived from a BPMN/VBucket runtime.

What this page does claim

  • implemented distributed BPMN workflow foundation
  • stable logical placement and ownership boundary
  • localized state-changing execution
  • explicit distributed read and recovery semantics

What does not automatically follow

  • complete TI-Flow service implementation
  • HCC or ZETA conformance
  • complete FHIR IG, QES or domain-profile coverage
  • approval, provider release, uninterrupted operation or GDPR guarantee
Fail-closed runtime

Unclear ownership is an error state, not a reason for silent fallback.

The foundation requires an unambiguous execution boundary. The public description stays with that technical effect.

Routing state

Contradictory or incomplete routing state is not treated as a normal execution path.

Ownership

Execution requires a valid named ownership boundary.

Context

Required business and security context stays bound to the execution decision.

ZETA boundary

ZETA remains external TI 2.0/TI-Flow context; complete ZETA validation or conformance is not claimed.

Two views of one request

A technical step and a business result are different states.

The integration follows an activation request. The external service remains authoritative for the Task. These illustrative lanes explain how the two views relate.

External serviceAuthoritative Task state
  1. draft
  2. activation checks
  3. ready on success
Integration / HostLocal observation of the request
  1. prepare request
  2. await response
  3. associate confirmed result
The local view adopts a business result only from the corresponding service response or permitted state reconciliation. A completed local step is not proof of activation.

If the response is missing, keep the business outcome unresolved. An operational retry decision requires the operation’s own reconciliation rules.

Read the state-authority and retry boundaries →

Do not start TI-Flow with a marketing claim. Start with the technical scope.

Separate FHIR/service contract, security/HCC context, workflow translation and the implemented runtime foundation against your target environment.

Discuss TI-Flow architecture scope →
Specification references: Matrix, FHIR®, TI, TI-M, TI-Flow, ZETA, ePA and gematik are external standards and integration contexts. Product status & evidence →
From architecture to decision

Turn this use case into a bounded evaluation.

Compare in-house, integration and hybrid paths without presuming an outcome. The target environment and release evidence remain to be verified.