Strategic Domain-driven Design
Model your domain.
Map your contexts.
Context Mapper is an open source modeling framework with a DSL for Context Mapping, Bounded Context modeling and service decomposition: write models as code, refactor them, and generate diagrams, contracts and code.
Also on Open VSX ยท Java library on Maven Central
ContextMap InsuranceContextMap {
contains CustomerManagementContext
contains PolicyManagementContext, DebtCollection
CustomerManagementContext [U,OHS,PL] -> [D,CF] PolicyManagementContext
PolicyManagementContext [SK] <-> [SK] DebtCollection
}
BoundedContext PolicyManagementContext {
type = FEATURE
responsibilities = "Offers", "Contracts", "Policies"
}Everything you need for tactic and strategic DDD
From the first Context Map to service contracts: one textual model, many views.
Context Mapping DSL (CML)
Model Bounded Contexts, Subdomains and their relationships with the strategic and tactic DDD patterns.
Architectural Refactorings
Split and merge Bounded Contexts and Aggregates step by step to improve coupling and cohesion.
Diagrams & Contracts
Generate graphical Context Maps, PlantUML diagrams, MDSL service contracts and BPMN sketches.
Code Generation
Generate any text or code with Freemarker templates, for example JHipster microservice applications.
Analysis & Design
Start from user stories, use cases and stakeholders, and derive Subdomains and Bounded Contexts (Rapid OOAD).
Java Library & Discovery
Read, validate and generate CML models in your own code, and reverse engineer Context Maps from existing systems.
From model to Context Map
Write your model in VS Code with validation, completion and quick fixes, then generate the graphical Context Map, PlantUML diagrams or service contracts with one command.
- Install the extension for VS Code
- Create a .cml file or start from one of our examples
- Refactor and generate what you need