Restocking
The Restocking bounded context is responsible to fulfill the requests to order milk coming from the Milk Planning. Moreover, it keeps track of the quintals of stocked milk that could be used by other bounded contexts. Lastly, this bounded context also keeps track of other ingredients (e.g. rennet, salt, probiotics, etc.) and their consumption when a production is started.
Ubiquitous Language
Term | Definition |
---|---|
Stock | Defines for each ingredient the quantity in stock. |
Stocked milk | Quintals of stocked milk. |
Quintals of ingredient | An ingredient and a weight in quintals. |
Quintals of milk | A quantity of milk expressed in quintals. |
Domain Events
Incoming Events
Event | Description |
---|---|
Order milk | Received when an order for milk has to be placed. |
Production started | Received when a production is started. It consumes the given ingredients. |