CountSessionCompletedEvent
EventType: COUNT_SESSION_COMPLETEDDomain: inventory Broker subject: progress.notification.inventory
Marks all count records in a session as complete and transitions the session to COMPLETED status, ready for the confirmation step.
Trigger
Triggered by: POST /event (universal event dispatcher)
Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: COUNT_SESSION_COMPLETED.
Preconditions
InventoryCountSessionexists with keyinfo.session_key- All count records in the session are in a completable state
State Changes (Transaction)
Collections: InventoryCountSession, inventory_count_record
InventoryCountSessionupdated:status → COMPLETED- Any remaining open
inventory_count_recordrecords finalized
Side Effects (post_processing)
Inherits post_processing() from BaseInventoryEvent:
- Publishes to
progress.notification.inventory
InfoModel Fields
| Field | Type | Description |
|---|---|---|
session_key | str | ArangoDB key of the inventory count session |
Related Events
None.