Skip to content

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_key provided or generated

State Changes (Transaction) ​

Collections: InventoryCountSession

  • InventoryCountSession inserted: status → STARTED, start timestamp

Side Effects (post_processing) ​

Inherits post_processing() from BaseInventoryEvent:

  • Publishes to progress.notification.inventory

InfoModel Fields ​

FieldTypeDescription
count_session_keystrArangoDB key for the new count session

None.

Source ​

CountSessionStartedEvent on GitHub

Released under the Apache 2.0 License.