Skip to content

WIPDeclaredEvent

EventType: WIP_DECLAREDDomain: wip Broker subject: progress.notification.production

Declares a quantity of material as WIP at a job boundary — typically when a batch enters a phase but has not been booked with full serial detail yet. Spawned by BatchCompletedEvent to update WIP availability for the next phase.

Trigger

Triggered by: POST /event (universal event dispatcher)

Spawned as a child event by BatchCompletedEvent in backend/api/events/production/batch_completed.py when WIP needs to be declared for the next phase.

Preconditions

  • Job exists with key info.job_key

State Changes (Transaction)

Collections: Inherited from BaseProductionEvent.get_tx_collections()

  • wip document inserted with job key, quantity, and optional serial keys

Side Effects (post_processing)

Inherits post_processing() from BaseProductionEvent:

  • Updates job.last_online
  • Recalculates work order status
  • Publishes to progress.notification.production

InfoModel Fields

FieldTypeDescription
job_keystrArangoDB key of the job
quantityintQuantity of units declared as WIP
serial_keyslist[str] | NoneSerial keys included in the WIP declaration

None.

Source

WIPDeclaredEvent on GitHub

Released under the Apache 2.0 License.