MDM - Mambelli Domain Model
4.0.0
M
D
M -
Mambelli
Domain
Model
Introduction
Domain
Analysis
Event
Storming
Context
Map
User stories
Bounded
Contexts
Milk
Planning
Production
Planning
Production
Stocking
Restocking
Client
Orders
Pricing
Shared
Kernel
Architecture
Development
Development choices
Documentation
Dev
Ops
Techniques
Deployment
Strategy
Quality
Assurance
Continuous
Integration and
Delivery
Licence
A
P
I
dev
.atedeg
.mdm
.clientorders
Client
Client
I
D
Client
Name
Complete
Order
Line
Completed
Order
In
Progress
Order
In
Progress
Order
Line
Complete
Incomplete
Incoming
Event
Order
Received
Product
Palletized
For
Order
Order
Completed
Incoming
Order
Incoming
Order
Line
Latitude
Location
Longitude
Main
Missing
Quantity
Order
Completion
Error
Order
Not
Complete
Order
I
D
Outgoing
Event
Order
Processed
Product
Palletized
Palletization
Error
Product
Not
In
Order
Palletized
More
Than
Required
Palletized
Quantity
Price
In
Euro
Cents
Priced
Order
Priced
Order
Line
Quantity
Transport
Document
Transport
Document
Line
V
A
T
Number
Weight
In
Kilograms
dev
.atedeg
.mdm
.clientorders
.api
Configuration
Emitter
Emitter
M
Q
dev
.atedeg
.mdm
.clientorders
.api
.endpoints
Orders
Endpoints
dev
.atedeg
.mdm
.clientorders
.api
.repositories
Order
Repository
Order
Repository
D
B
dev
.atedeg
.mdm
.clientorders
.api
.services
Price
Order
Line
Service
Price
Order
Line
Service
H
T
T
P
dev
.atedeg
.mdm
.clientorders
.dto
Client
D
T
O
Complete
Order
Line
D
T
O
Completed
Order
D
T
O
Completed
Order
D
T
O
Completed
Order
Line
D
T
O
In
Progress
Order
D
T
O
In
Progress
Order
D
T
O
In
Progress
Order
Line
D
T
O
Incoming
Order
D
T
O
Incoming
Order
Line
D
T
O
Incoming
Order
Line
D
T
O
Incomplete
Order
Line
D
T
O
Location
D
T
O
Order
Completed
D
T
O
Order
Completed
D
T
O
Order
Processed
D
T
O
Order
Processed
D
T
O
Order
Received
D
T
O
Order
Received
D
T
O
Price
In
Euro
Cents
D
T
O
Price
In
Euro
Cents
D
T
O
Product
Palletized
D
T
O
Product
Palletized
D
T
O
Product
Palletized
For
Order
D
T
O
Product
Palletized
For
Order
D
T
O
Product
With
Quantity
D
T
O
Transport
Document
D
T
O
Transport
Document
D
T
O
Transport
Document
Line
D
T
O
dev
.atedeg
.mdm
.clientorders
.utils
Quantity
Ops
given_
Order_
Quantity
dev
.atedeg
.mdm
.milkplanning
Incoming
Event
Received
Order
Outgoing
Event
Order
Milk
Processed
Milk
Quantity
Quintals
Of
Milk
Requested
Product
Stocked
Quantity
Yield
dev
.atedeg
.mdm
.milkplanning
.api
Configuration
dev
.atedeg
.mdm
.milkplanning
.api
.acl
Customer
D
T
O
Incoming
Order
D
T
O
Incoming
Order
Line
D
T
O
Location
D
T
O
Ordered
Milk
D
T
O
dev
.atedeg
.mdm
.milkplanning
.api
.emitters
Order
Milk
Emitter
dev
.atedeg
.mdm
.milkplanning
.api
.repositories
Received
Order
Repository
Recipe
Book
Repository
dev
.atedeg
.mdm
.milkplanning
.dto
Order
Milk
D
T
O
Order
Milk
D
T
O
Quintals
Of
Milk
D
T
O
Quintals
Of
Milk
D
T
O
Received
Order
D
T
O
Received
Order
D
T
O
Recipe
Book
D
T
O
Requested
Product
D
T
O
Requested
Product
D
T
O
Stock
D
T
O
dev
.atedeg
.mdm
.milkplanning
.utils
Quintals
Of
Milk
Ops
given_
Order_
Quintals
Of
Milk
dev
.atedeg
.mdm
.pricing
Client
Client
I
D
Discount
Percentage
Incoming
Order
Line
Main
Price
In
Euro
Cents
Price
List
Promotion
Promotion
Line
Fixed
Threshold
Quantity
Threshold
Quantity
dev
.atedeg
.mdm
.pricing
.api
Configuration
dev
.atedeg
.mdm
.pricing
.api
.endpoints
Pricing
Endpoints
dev
.atedeg
.mdm
.pricing
.api
.repositories
Price
List
Repository
Price
List
Repository
D
B
Promotions
Repository
Promotions
Repository
D
B
dev
.atedeg
.mdm
.pricing
.dto
Client
D
T
O
Fixed
Promotion
Line
D
T
O
Incoming
Order
Line
D
T
O
Incoming
Order
Line
D
T
O
Price
In
Euro
Cents
D
T
O
Price
In
Euro
Cents
D
T
O
Price
List
D
T
O
Price
List
D
T
O
Promotion
D
T
O
Promotion
D
T
O
Promotion
Line
D
T
O
Threshold
Promotion
Line
D
T
O
dev
.atedeg
.mdm
.pricing
.utils
discount
Percentage
Times
dev
.atedeg
.mdm
.production
Batch
I
D
Cheese
Type
Ripening
Days
Incoming
Event
Production
Plan
Ready
Production
Ended
Missing
Recipe
Number
Of
Units
Outgoing
Event
Start
Production
New
Batch
Production
To
Start
In
Progress
Ended
Production
I
D
Production
Plan
Production
Plan
Item
Quintals
Of
Ingredient
Recipe
Recipe
Book
Ripening
Days
Weight
In
Quintals
dev
.atedeg
.mdm
.production
.api
Configuration
dev
.atedeg
.mdm
.production
.api
.emitters
Emitter
dev
.atedeg
.mdm
.production
.api
.repositories
Cheese
Type
Ripening
Days
Repository
Productions
Repository
Recipe
Book
Repository
dev
.atedeg
.mdm
.production
.dto
Cheese
Type
Ripening
Days
D
T
O
Cheese
Type
Ripening
Days
D
T
O
Ended
D
T
O
Ended
D
T
O
In
Progress
D
T
O
In
Progress
D
T
O
New
Batch
D
T
O
New
Batch
D
T
O
Product
To
Produce
D
T
O
Production
Ended
D
T
O
Production
Ended
D
T
O
Production
Plan
D
T
O
Production
Plan
Ready
D
T
O
Production
Plan
Ready
D
T
O
Quintals
Of
Ingredient
D
T
O
Recipe
Book
D
T
O
Recipe
Book
D
T
O
Recipe
D
T
O
Start
Production
D
T
O
Start
Production
D
T
O
To
Start
D
T
O
To
Start
D
T
O
dev
.atedeg
.mdm
.production
.utils
dev
.atedeg
.mdm
.productionplanning
Cheese
Type
Ripening
Days
Incoming
Event
New
Order
Received
Missing
Products
Missing
Quantity
Order
Order
I
D
Order
Status
Ordered
Product
Outgoing
Event
Production
Plan
Ready
Order
Delayed
Product
To
Produce
Production
Plan
Quantity
Ripening
Days
dev
.atedeg
.mdm
.productionplanning
.api
Configuration
dev
.atedeg
.mdm
.productionplanning
.api
.acl
Customer
D
T
O
Desired
Stock
D
T
O
Incoming
Order
D
T
O
Incoming
Order
Line
D
T
O
Location
D
T
O
dev
.atedeg
.mdm
.productionplanning
.api
.emitters
Order
Delayed
Emitter
Production
Plan
Ready
Emitter
dev
.atedeg
.mdm
.productionplanning
.api
.repositories
Production
Plan
Repository
Received
Order
Repository
Ripening
Days
Repository
dev
.atedeg
.mdm
.productionplanning
.dto
Cheese
Type
Ripening
Days
D
T
O
Cheese
Type
Ripening
Days
D
T
O
Missing
Products
D
T
O
Missing
Products
D
T
O
New
Order
Received
D
T
O
New
Order
Received
D
T
O
Order
D
T
O
Order
D
T
O
Order
Delayed
D
T
O
Order
Delayed
D
T
O
Ordered
Product
D
T
O
Ordered
Product
D
T
O
Product
To
Produce
D
T
O
Production
Plan
D
T
O
Production
Plan
D
T
O
Production
Plan
Ready
D
T
O
Production
Plan
Ready
D
T
O
dev
.atedeg
.mdm
.products
Cheese
Type
Grams
Ingredient
Product
Squacquerone
Casatella
Ricotta
Stracchino
Caciotta
Product
dev
.atedeg
.mdm
.products
.dto
Cheese
Type
D
T
O
given_
D
T
O_
Cheese
Type_
String
Ingredient
D
T
O
given_
D
T
O_
Ingredient_
String
Product
D
T
O
Product
D
T
O
given_
D
T
O_
Product_
Product
D
T
O
dev
.atedeg
.mdm
.products
.utils
given_
Order_
Grams
dev
.atedeg
.mdm
.restocking
Incoming
Event
Order
Milk
Production
Started
Main
Quintals
Of
Ingredient
Quintals
Of
Milk
Stocked
Milk
Stocked
Quantity
Weight
In
Quintals
dev
.atedeg
.mdm
.restocking
.api
Remaining
Milk
dev
.atedeg
.mdm
.restocking
.api
.dto
Remaining
Milk
D
T
O
Remaining
Milk
D
T
O
dev
.atedeg
.mdm
.restocking
.api
.endpoints
Remaining
Quintals
Of
Milk
Endpoint
dev
.atedeg
.mdm
.restocking
.api
.repositories
D
B
Stock
Repository
Stock
Repository
dev
.atedeg
.mdm
.restocking
.dto
Order
Milk
D
T
O
Order
Milk
D
T
O
Production
Started
D
T
O
Production
Started
D
T
O
Quintals
Of
Ingredient
D
T
O
Quintals
Of
Ingredient
D
T
O
Stock
D
T
O
dev
.atedeg
.mdm
.stocking
Available
Quantity
Available
Stock
Batch
Aging
Ready
For
Quality
Assurance
Batch
I
D
Desired
Quantity
Desired
Stock
Error
Weight
Not
In
Range
Not
Enough
Stock
Incoming
Event
Batch
Ready
For
Quality
Assurance
Product
Removed
From
Stock
New
Batch
Labelled
Product
Main
Missing
Quantity
Outgoing
Event
Product
Stocked
Quality
Assured
Batch
Passed
Failed
Quantity
dev
.atedeg
.mdm
.stocking
.api
dev
.atedeg
.mdm
.stocking
.api
.acl
Product
Palletized
D
T
O
dev
.atedeg
.mdm
.stocking
.api
.endpoints
Batches
Requests
Stock
Requests
dev
.atedeg
.mdm
.stocking
.api
.repositories
Batches
Repository
Batches
Repository
D
B
Stock
Repository
Stock
Repository
D
B
dev
.atedeg
.mdm
.stocking
.dto
Aging
Batch
D
T
O
Aging
Batch
D
T
O
Available
Stock
D
T
O
Available
Stock
D
T
O
Batch
Ready
For
Quality
Assurance
D
T
O
Batch
Ready
For
Quality
Assurance
D
T
O
Batch
Ready
For
Quality
Assurance
Event
D
T
O
Batch
Ready
For
Quality
Assurance
Event
D
T
O
Desired
Stock
D
T
O
Desired
Stock
D
T
O
Labelled
Product
D
T
O
New
Batch
D
T
O
New
Batch
D
T
O
Product
Available
Quantity
D
T
O
Product
Desired
Quantity
D
T
O
Product
Removed
From
Stock
D
T
O
Product
Removed
From
Stock
D
T
O
Product
Stocked
D
T
O
Product
Stocked
D
T
O
Quality
Assured
Batch
Failed
D
T
O
Quality
Assured
Batch
Failed
D
T
O
Quality
Assured
Batch
Passed
D
T
O
Quality
Assured
Batch
Passed
D
T
O
dev
.atedeg
.mdm
.utils
Ceil
Ceil
Distance
Distance
Div
Div
Minus
Minus
Plus
Plus
Times
Times
given_
Ceil_
Double
given_
Conversion_
Positive
Decimal_
Non
Negative
Decimal
given_
Conversion_
Positive
Number_
Non
Negative
Number
given_
Div_
Int
refined
Times
Percentage
dev
.atedeg
.mdm
.utils
.monads
dev
.atedeg
.mdm
.utils
.ranges
Range
Range
Percentage
dev
.atedeg
.mdm
.utils
.serialization
D
T
O
D
T
O
given_
D
T
O_
Local
Date
Time_
String
given_
D
T
O_
Local
Date_
String
given_
D
T
O_
U
U
I
D_
String
D
T
O
Generators
D
T
O
Ops
MDM - Mambelli Domain Model
/
API
/
dev.atedeg.mdm.utils.ranges
/
Range
Range
final case
class
Range
[
T
]
Graph
Supertypes
trait
Serializable
trait
Product
trait
Equals
class
Object
trait
Matchable
class
Any
Inherited
Select All
Deselect All
Not inherited
Product
Value members
Value members
Inherited methods
def
productElementNames
:
Iterator
[
String
]
Inherited from:
Product
def
productIterator
:
Iterator
[
Any
]
Inherited from:
Product