CountSessionStartedEvent
EventType: COUNT_SESSION_STARTEDDomain: inventory Broker subject: progress.notification.inventory
Creates a new InventoryCountSession document with status: STARTED, initialising the session for count record collection.
Trigger
Triggered by: POST /event (universal event dispatcher)
Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: COUNT_SESSION_STARTED.
Preconditions
count_session_keyprovided or generated
State Changes (Transaction)
Collections: InventoryCountSession
InventoryCountSessioninserted:status → STARTED,starttimestamp
Side Effects (post_processing)
Inherits post_processing() from BaseInventoryEvent:
- Publishes to
progress.notification.inventory
InfoModel Fields
| Field | Type | Description |
|---|---|---|
count_session_key | str | ArangoDB key for the new count session |
Related Events
None.