Skip to content

SerialReleasedEvent

EventType: SERIAL_RELEASEDDomain: serial Broker subject: progress.notification.serial

Releases a serial by setting its released timestamp, making it available for shipment and downstream traceability queries. Spawned as a child event by BatchCompletedEvent when the batch's serials are released on completion.

Trigger

Triggered by: POST /event (universal event dispatcher)

Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: SERIAL_RELEASED. Also spawned as a child event by BatchCompletedEvent in backend/api/events/production/batch_completed.py.

Preconditions

  • Serial exists with the key provided in the event context
  • Serial is not already released

State Changes (Transaction)

Collections: Inherited from BaseSerialEvent.get_tx_collections()

  • Serial updated: released timestamp set

Side Effects (post_processing)

Inherits post_processing() from BaseSerialEvent:

  • Publishes to progress.notification.serial

InfoModel Fields

FieldTypeDescription
releaseddatetime | NoneRelease timestamp (defaults to current time)

None.

Source

SerialReleasedEvent on GitHub

Released under the Apache 2.0 License.