Stocking

After a batch of cheeses has ripened for the required amount of time, one of them is selected to perform quality assurance. Its result could be either positive or negative. The former results in the cheeses being wrapped, labeled and put in the refrigeration room; the latter results in the entire batch being discarded.

To label a cheese the worker has to weigh it, and an automated system will print an appropriate label.

Ubiquitous Language

Term Definition
Available stock The currently available products in stock; each one is available in a certain quantity (that could also be zero if the product is out-of-stock).
Desired stock The desired quantity of each product that should always be in stock in order to have a safe margin to keep order fulfillment going.
Available quantity The quantity in stock of a certain product.
Desired quantity The desired quantity of a certain product to be in stock.
Missing quantity The required quantity of a certain product to reach the desired stock level.
Batch A batch of products of a certain type, uniquely identified by an ID, which hasn't been quality assured.
Quality assured batch A batch of products of a certain type uniquely identified by an ID, which has undergone quality assurance.
Labelled product A product with its respective quantity and the ID of the batch it belongs to.

Domain Events

Incoming Events

Term Definition
Batch ready for quality assurance Received when a batch is ready for quality assurance.
Product removed from stock Received when a product is removed from the stock.
New batch Received when a batch is created.

Outgoing Events

Term Definition
Product stocked Fired when a label is printed for a product, which is then stocked.
Product palletized An event emitted when a product is successfully palletized for an order.
Generated byscaladoc
Made with ❤ by Giacomo, Nicolas, Nicolò, Linda
Mode
Back to top
In this article