Four boundaries that stay separate
- Canonical TI-Flow domain: stable process, task, actor and transition semantics independent of wire representation.
- Local Flowtype/mapper generation: versions internal rendering; externally allowed operations and Task transitions follow the Fachdienst contract.
- FHIR® adapter: deterministic mapping and local profile validation outside the workflow transaction.
- Delivery boundary: durable intent/payload is delivered and reconciled only after successful commit.
Internal BPMN state and authoritative FHIR Task status are separate state spaces
BPMN state represents internal orchestration. For the external TI-Flow Task lifecycle, the Fachdienst-managed Task identifier, remote Task status and normative transitions are authoritative. An integration may map remote results but must never record a rejected or uncertain remote transition as a locally confirmed success. Separating these state spaces protects internal process semantics from FHIR representation changes.
External states and retries
A successful $create call returns the Task in draft with Task ID/PrescriptionID and AccessCode. $activate also requires the unchanged QES data and returns ready on success. A timeout leaves the outcome unknown; retries and failover follow the specific operation and published error handling. A rejected subsequent request does not establish an unchanged remote Task.