Production Planning

Every morning Raffaella has to create a production plan which contains how many of each product to produce that day.

She makes this plan taking into account the following factors:

  • the production plan for the same day of the previous year

  • the products that have to be manufactured that day to fulfill new orders considering the ripening time of each cheese type.

    e.g. a caciotta takes seven days to ripen, so the production has to start seven days before the order's deadline.

    If an order contains a product with ripening days that takes more time than the order required date, it will be delayed.

  • the products needed to replenish the stock

💡 The completed production plan is sent to the production B.C.

Ubiquitous Language

Term Definition
Production plan All the products to be produced in a day.
Product to produce The quantity of each product to be produced.
Missing products The products missing from the stock in a given quantity.
Order A set of requested products with the quantities that have to be produced by the given date.
Ordered product A product requested in a given quantity.
Cheese type ripening days Defines how many days of ripening are needed for a given type of cheese.
Ripening days The number of days needed for the ripening process to be done.

Domain Events

Incoming Events

Term Definition
New order received Event representing an order placed, data about the orders is used to create the production plan.

Outgoing Events

Term Definition
Production plan ready Event that contains the production plan of the day.
Order delayed An event emitted if an order cannot be fulfilled since there are some products whose ripening days would make it impossible to fulfil the order by the required date. A new delivery date is also provided.
Generated byscaladoc
Made with ❤ by Giacomo, Nicolas, Nicolò, Linda
Mode
Back to top
In this article