Skip to content

MovementPlannedEvent

EventType: MOVEMENT_PLANNEDDomain: inventory Broker subject: progress.notification.inventory

Creates a planned (uncommitted) movement record that can be confirmed later via MovementCompletedEvent. Optionally pre-reserves a serial for the planned movement.

Trigger

Triggered by: POST /event (universal event dispatcher)

Dispatched via POST /event in backend/api/endpoints/traceability.py with event_type: MOVEMENT_PLANNED.

Preconditions

  • Product and positions involved must be valid

State Changes (Transaction)

Collections: movement, Serial

  • movement inserted with status: PLANNED
  • Serial updated if a serial is pre-assigned to the movement

Side Effects (post_processing)

Inherits post_processing() from BaseInventoryEvent:

  • Publishes to progress.notification.inventory

InfoModel Fields

FieldTypeDescription
new_movement_keystr | NoneKey to assign to the new movement document

None.

Source

MovementPlannedEvent on GitHub

Released under the Apache 2.0 License.