Skip to content

SerialUnlinkedEvent

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

Removes a child serial from its parent by deleting the contains edge. Optionally reverts the inventory movement that was created when the serial was linked.

Trigger

Triggered by: POST /event (universal event dispatcher)

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

Preconditions

  • Child serial exists with key info.child_serial_key
  • A contains edge exists from child to parent

State Changes (Transaction)

Collections: contains, is_in_position, movement, Serial

  • contains edge deleted
  • If process_inventory: is_in_position and movement records updated to reflect the unlinking

Side Effects (post_processing)

Inherits post_processing() from BaseSerialEvent:

  • Publishes to progress.notification.serial

InfoModel Fields

FieldTypeDescription
child_serial_keystrArangoDB key of the child serial to unlink
parent_serial_keystr | NoneArangoDB key of the parent serial
batch_keystr | NoneBatch key for context
reasonstr | NoneReason for unlinking
process_inventorybool | NoneWhether to revert the inventory movement

None.

Source

SerialUnlinkedEvent on GitHub

Released under the Apache 2.0 License.