CML Reference - Introduction
Language Semantics
Context Map
Bounded Context
Domain and Subdomain
Domain Vision Statement
Partnership
Shared Kernel
Customer/Supplier
Conformist
Open Host Service
Anticorruption Layer
Published Language
Responsibility Layers
Knowledge Level
Aggregate
Tactic DDD Syntax
Application and Process Layer
User Requirements
Stakeholders
Value Registers
Imports
Architectural Refactorings
AR-1: Split Aggregate by Entities
AR-2: Split Bounded Context by Features
AR-3: Split Bounded Context by Owner
AR-4: Extract Aggregates by Volatility
AR-5: Extract Aggregates by Cohesion
AR-6: Merge Aggregates
AR-7: Merge Bounded Contexts
AR-8: Extract Shared Kernel
AR-9: Suspend Partnership
AR-10: Change Shared Kernel to Partnership
AR-11: Change Partnership to Shared Kernel
Domain Vision Statement
The Domain Vision Statement pattern from the “blue book” is implemented as a String attribute on the bounded context, the domain, and the subdomain.
Syntax
The following two code snippets show an example for a bounded context, a domain, and a subdomain accordingly:
BoundedContext CustomerContext {
domainVisionStatement = "This context is responsible for ..."
}
Domain Insurance {
domainVisionStatement = "Insurance domain vision ..."
Subdomain Customers {
/* subdomain specification */
}
Subdomain PolicyManagement {
/* subdomain specification */
}
}
Subdomain CustomerManagementDomain {
type = CORE_DOMAIN
domainVisionStatement = "Subdomain managing everything customer-related."
}
- Previous
- Next