flowchart LR accTitle: The lifecycle of a reservation accDescr: A reservation moves from quote to hold to confirmed to fulfilled. A caller with the reserve scope may place a hold. An approver or a policy confirms it. An ERP acknowledgement marks it fulfilled. A quote expires when its validity ends. A hold expires on a timer, which releases the capacity. A confirmed reservation can be cancelled by an operator or the customer within the agreed terms. Each transition names an actor, a source of truth and a record an operator can find. %% ref-states (en) %% https://www.thebsq.com/capabilities/engineering-m2m %% n_quote — The quote fixes the terms and validity window for a possible hold. Check the clock at the moment capacity is requested. n_quote["Valid quote"] %% n_hold — A caller with the reserve scope may place a hold. n_hold["Reserve capacity"] %% n_confirm — An approver or a policy confirms it. n_confirm["Confirmed reservation"] %% n_fulfil — An ERP acknowledgement marks it fulfilled. n_fulfil["Fulfilled"] %% n_quoteExpiry — A quote expires when its validity ends. n_quoteExpiry["Quote expired"] %% n_holdExpiry — A hold expires on a timer, which releases the capacity. n_holdExpiry["Hold expired"] %% n_cancel — A confirmed reservation can be cancelled by an operator or the customer within the agreed terms. n_cancel["Cancelled"] %% n_evidence — Each transition names an actor, a source of truth and a record an operator can find. n_evidence["Transition record"] n_quote -->|"reserve scope and valid terms"| n_hold n_quote -->|"validity window closes"| n_quoteExpiry n_hold -->|"approver or policy accepts"| n_confirm n_hold -->|"timer releases capacity"| n_holdExpiry n_confirm -->|"ERP acknowledges fulfilment"| n_fulfil n_confirm -->|"customer or operator acts within terms"| n_cancel n_fulfil -->|"records the ERP reference"| n_evidence n_quoteExpiry -->|"obtain fresh terms"| n_quote n_holdExpiry -->|"records the released capacity"| n_evidence n_cancel -->|"records who cancelled and when"| n_evidence %% Reserve and fulfil — n_quote → n_hold → n_confirm → n_fulfil → n_evidence %% Let the hold expire — n_quote → n_hold → n_holdExpiry → n_evidence %% Cancel an accepted reservation — n_quote → n_hold → n_confirm → n_cancel → n_evidence