@phuc1403/musketeer 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INSTALLATION.md +22 -0
- package/LICENSE +21 -0
- package/README.md +38 -0
- package/bin/musketeer.js +72 -0
- package/manifest.json +238 -0
- package/package.json +46 -0
- package/src/copier.js +119 -0
- package/src/lockfile.js +61 -0
- package/src/manifest-loader.js +46 -0
- package/src/muster.js +48 -0
- package/src/provisioner/detect.js +93 -0
- package/src/provisioner/guide.js +32 -0
- package/src/provisioner/index.js +113 -0
- package/src/provisioner/mcp.js +26 -0
- package/src/provisioner/os-package-manager.js +71 -0
- package/src/provisioner/venv.js +44 -0
- package/src/reconcile.js +94 -0
- package/src/resolver.js +130 -0
- package/src/schema.js +152 -0
- package/src/settings-merger.js +0 -0
- package/template/.claude/agents/code-reviewer.md +166 -0
- package/template/.claude/agents/hallmark-auditor.md +78 -0
- package/template/.claude/agents/hallmark-explorer.md +81 -0
- package/template/.claude/agents/researcher.md +33 -0
- package/template/.claude/hooks/block-migration-edits.cjs +31 -0
- package/template/.claude/hooks/format-json-hook.js +91 -0
- package/template/.claude/hooks/inject-design-docs.cjs +86 -0
- package/template/.claude/hooks/lib/colors.cjs +122 -0
- package/template/.claude/hooks/lib/git-info-cache.cjs +191 -0
- package/template/.claude/hooks/lib/transcript-parser.cjs +277 -0
- package/template/.claude/hooks/usage-context-awareness.cjs +166 -0
- package/template/.claude/hooks/validate-cml-hook.js +145 -0
- package/template/.claude/skills/adr-writer/SKILL.md +78 -0
- package/template/.claude/skills/adr-writer/references/adr-example.md +38 -0
- package/template/.claude/skills/adr-writer/references/adr-template.md +46 -0
- package/template/.claude/skills/architecture-characteristic-writer/SKILL.md +117 -0
- package/template/.claude/skills/architecture-characteristic-writer/assets/worksheet-template.md +40 -0
- package/template/.claude/skills/architecture-characteristic-writer/references/characteristics-catalog.md +106 -0
- package/template/.claude/skills/code-review/SKILL.md +54 -0
- package/template/.claude/skills/code-review/references/adversarial-review.md +223 -0
- package/template/.claude/skills/code-review/references/checklists/api.md +52 -0
- package/template/.claude/skills/code-review/references/checklists/base.md +100 -0
- package/template/.claude/skills/code-review/references/checklists/web-app.md +54 -0
- package/template/.claude/skills/context-map/SKILL.md +80 -0
- package/template/.claude/skills/context-map/example.cml +106 -0
- package/template/.claude/skills/context-map/reference/Aggregate/Aggregate.md +1 -0
- package/template/.claude/skills/context-map/reference/Bounded Context/Bounded Context.md +41 -0
- package/template/.claude/skills/context-map/reference/Bounded Context/businessModel.md +6 -0
- package/template/.claude/skills/context-map/reference/Bounded Context/domainVisionStatement.md +3 -0
- package/template/.claude/skills/context-map/reference/Bounded Context/evolution.md +6 -0
- package/template/.claude/skills/context-map/reference/Bounded Context/implementationTechnology.md +1 -0
- package/template/.claude/skills/context-map/reference/Bounded Context/implements.md +1 -0
- package/template/.claude/skills/context-map/reference/Bounded Context/knowledgeLevel.md +5 -0
- package/template/.claude/skills/context-map/reference/Bounded Context/realizes.md +9 -0
- package/template/.claude/skills/context-map/reference/Bounded Context/refines.md +10 -0
- package/template/.claude/skills/context-map/reference/Bounded Context/responsibilities.md +26 -0
- package/template/.claude/skills/context-map/reference/Bounded Context/type.md +23 -0
- package/template/.claude/skills/context-map/reference/Bounded Context Relationship/Anticorruption Layer.md +5 -0
- package/template/.claude/skills/context-map/reference/Bounded Context Relationship/Bounded Context Relationship.md +13 -0
- package/template/.claude/skills/context-map/reference/Bounded Context Relationship/Conformist.md +5 -0
- package/template/.claude/skills/context-map/reference/Bounded Context Relationship/Customer-Supplier (C-S).md +23 -0
- package/template/.claude/skills/context-map/reference/Bounded Context Relationship/Open Host Service.md +5 -0
- package/template/.claude/skills/context-map/reference/Bounded Context Relationship/Partnership (P).md +14 -0
- package/template/.claude/skills/context-map/reference/Bounded Context Relationship/Published Language.md +5 -0
- package/template/.claude/skills/context-map/reference/Bounded Context Relationship/Shared Kernel (SK).md +13 -0
- package/template/.claude/skills/context-map/reference/Context Map.md +63 -0
- package/template/.claude/skills/context-map/reference/Domain/Domain.md +30 -0
- package/template/.claude/skills/context-map/reference/Domain/supports.md +34 -0
- package/template/.claude/skills/context-map/reference/Domain/type.md +3 -0
- package/template/.claude/skills/context-map/reference/Semantic Rules.md +33 -0
- package/template/.claude/skills/hallmark/SKILL.md +552 -0
- package/template/.claude/skills/hallmark/references/anti-patterns.md +412 -0
- package/template/.claude/skills/hallmark/references/assets.md +406 -0
- package/template/.claude/skills/hallmark/references/color.md +95 -0
- package/template/.claude/skills/hallmark/references/component-cookbook.md +256 -0
- package/template/.claude/skills/hallmark/references/components/c1-outlined-chip.md +12 -0
- package/template/.claude/skills/hallmark/references/components/c2-inline-form-as-cta.md +16 -0
- package/template/.claude/skills/hallmark/references/components/c3-typographic-link.md +8 -0
- package/template/.claude/skills/hallmark/references/components/c4-sticky-bottom-bar.md +16 -0
- package/template/.claude/skills/hallmark/references/components/f1-bento-grid.md +20 -0
- package/template/.claude/skills/hallmark/references/components/f2-sticky-scroll-stack.md +20 -0
- package/template/.claude/skills/hallmark/references/components/f3-tabular-spec-sheet.md +11 -0
- package/template/.claude/skills/hallmark/references/components/f4-step-sequence.md +11 -0
- package/template/.claude/skills/hallmark/references/components/f5-annotated-screenshot.md +11 -0
- package/template/.claude/skills/hallmark/references/components/f6-product-card-grid.md +41 -0
- package/template/.claude/skills/hallmark/references/components/ft1-mast-headed.md +13 -0
- package/template/.claude/skills/hallmark/references/components/ft2-inline-rule-single-line.md +10 -0
- package/template/.claude/skills/hallmark/references/components/ft3-index-style-category-list.md +12 -0
- package/template/.claude/skills/hallmark/references/components/ft4-dense-typographic.md +10 -0
- package/template/.claude/skills/hallmark/references/components/ft5-statement.md +21 -0
- package/template/.claude/skills/hallmark/references/components/ft6-letter-close.md +19 -0
- package/template/.claude/skills/hallmark/references/components/ft7-newsletter-first.md +27 -0
- package/template/.claude/skills/hallmark/references/components/ft8-marquee-scroll.md +25 -0
- package/template/.claude/skills/hallmark/references/components/h1-marquee.md +15 -0
- package/template/.claude/skills/hallmark/references/components/h2-split-diptych.md +15 -0
- package/template/.claude/skills/hallmark/references/components/h3-quote-led.md +11 -0
- package/template/.claude/skills/hallmark/references/components/h4-stat-led.md +14 -0
- package/template/.claude/skills/hallmark/references/components/h5-letter-hero.md +11 -0
- package/template/.claude/skills/hallmark/references/components/h6-photographic-fold.md +16 -0
- package/template/.claude/skills/hallmark/references/components/h7-demo-video-clipped-by-viewport-edge.md +27 -0
- package/template/.claude/skills/hallmark/references/components/h8-mockup-split-browser-framed.md +23 -0
- package/template/.claude/skills/hallmark/references/components/h9-custom-illustration-centerpiece.md +27 -0
- package/template/.claude/skills/hallmark/references/components/n1-wordmark-2-links.md +12 -0
- package/template/.claude/skills/hallmark/references/components/n10-floating-on-scroll-morph.md +19 -0
- package/template/.claude/skills/hallmark/references/components/n2-floating-chip.md +14 -0
- package/template/.claude/skills/hallmark/references/components/n3-side-rail.md +14 -0
- package/template/.claude/skills/hallmark/references/components/n4-hidden-behind-k.md +9 -0
- package/template/.claude/skills/hallmark/references/components/n5-floating-pill.md +28 -0
- package/template/.claude/skills/hallmark/references/components/n6-newspaper-masthead.md +24 -0
- package/template/.claude/skills/hallmark/references/components/n7-brutal-slab.md +22 -0
- package/template/.claude/skills/hallmark/references/components/n8-terminal-command.md +21 -0
- package/template/.claude/skills/hallmark/references/components/n9-edge-aligned-minimal.md +17 -0
- package/template/.claude/skills/hallmark/references/components/s1-left-margin-numbered.md +15 -0
- package/template/.claude/skills/hallmark/references/components/s2-hanging.md +13 -0
- package/template/.claude/skills/hallmark/references/components/s3-sticky-pinned.md +19 -0
- package/template/.claude/skills/hallmark/references/components/s4-inline-no-break.md +11 -0
- package/template/.claude/skills/hallmark/references/components/s5-bottom-anchored.md +13 -0
- package/template/.claude/skills/hallmark/references/components/t1-pull-quote-with-marginalia.md +12 -0
- package/template/.claude/skills/hallmark/references/components/t2-logo-wall-hairline.md +19 -0
- package/template/.claude/skills/hallmark/references/components/t3-single-huge-quote.md +11 -0
- package/template/.claude/skills/hallmark/references/components/t4-numbered-stat-strip.md +14 -0
- package/template/.claude/skills/hallmark/references/contract.md +24 -0
- package/template/.claude/skills/hallmark/references/copy.md +182 -0
- package/template/.claude/skills/hallmark/references/custom-craft.md +626 -0
- package/template/.claude/skills/hallmark/references/custom-theme.md +329 -0
- package/template/.claude/skills/hallmark/references/design-md.md +116 -0
- package/template/.claude/skills/hallmark/references/export-formats.md +328 -0
- package/template/.claude/skills/hallmark/references/floating-nav.md +89 -0
- package/template/.claude/skills/hallmark/references/genres/atmospheric.md +65 -0
- package/template/.claude/skills/hallmark/references/genres/editorial.md +70 -0
- package/template/.claude/skills/hallmark/references/genres/modern-minimal.md +67 -0
- package/template/.claude/skills/hallmark/references/genres/playful.md +65 -0
- package/template/.claude/skills/hallmark/references/hero-enrichment.md +474 -0
- package/template/.claude/skills/hallmark/references/imagery-kit.md +170 -0
- package/template/.claude/skills/hallmark/references/interaction-and-states.md +207 -0
- package/template/.claude/skills/hallmark/references/layout-and-space.md +111 -0
- package/template/.claude/skills/hallmark/references/macrostructures/01-bento-grid.md +35 -0
- package/template/.claude/skills/hallmark/references/macrostructures/02-long-document.md +34 -0
- package/template/.claude/skills/hallmark/references/macrostructures/03-marquee-hero.md +31 -0
- package/template/.claude/skills/hallmark/references/macrostructures/04-stat-led.md +32 -0
- package/template/.claude/skills/hallmark/references/macrostructures/05-workbench.md +32 -0
- package/template/.claude/skills/hallmark/references/macrostructures/06-conversational-faq.md +33 -0
- package/template/.claude/skills/hallmark/references/macrostructures/07-manifesto.md +32 -0
- package/template/.claude/skills/hallmark/references/macrostructures/08-photographic.md +34 -0
- package/template/.claude/skills/hallmark/references/macrostructures/09-quote-led.md +32 -0
- package/template/.claude/skills/hallmark/references/macrostructures/10-specimen.md +32 -0
- package/template/.claude/skills/hallmark/references/macrostructures/11-catalogue.md +23 -0
- package/template/.claude/skills/hallmark/references/macrostructures/12-letter.md +23 -0
- package/template/.claude/skills/hallmark/references/macrostructures/13-index-first.md +23 -0
- package/template/.claude/skills/hallmark/references/macrostructures/14-narrative-workflow.md +23 -0
- package/template/.claude/skills/hallmark/references/macrostructures/15-split-studio.md +23 -0
- package/template/.claude/skills/hallmark/references/macrostructures/16-feature-stack.md +23 -0
- package/template/.claude/skills/hallmark/references/macrostructures/17-type-specimen.md +23 -0
- package/template/.claude/skills/hallmark/references/macrostructures/18-portfolio-grid.md +23 -0
- package/template/.claude/skills/hallmark/references/macrostructures/19-map-diagram.md +23 -0
- package/template/.claude/skills/hallmark/references/macrostructures/20-ecosystem-index.md +23 -0
- package/template/.claude/skills/hallmark/references/macrostructures/21-component-playground.md +23 -0
- package/template/.claude/skills/hallmark/references/macrostructures.md +89 -0
- package/template/.claude/skills/hallmark/references/microinteractions.md +260 -0
- package/template/.claude/skills/hallmark/references/motion.md +109 -0
- package/template/.claude/skills/hallmark/references/preview-examples.md +49 -0
- package/template/.claude/skills/hallmark/references/responsive.md +138 -0
- package/template/.claude/skills/hallmark/references/slop-test.md +205 -0
- package/template/.claude/skills/hallmark/references/structure.md +164 -0
- package/template/.claude/skills/hallmark/references/study.md +511 -0
- package/template/.claude/skills/hallmark/references/typography.md +243 -0
- package/template/.claude/skills/hallmark/references/verbs/audit.md +25 -0
- package/template/.claude/skills/hallmark/references/verbs/redesign.md +269 -0
- package/template/.claude/skills/hallmark-explore/SKILL.md +137 -0
- package/template/.claude/skills/hallmark-explore/references/direction-matrix.md +124 -0
- package/template/.claude/skills/hallmark-explore/references/explorer-call.md +68 -0
- package/template/.claude/skills/hallmark-explore/scripts/build_compare.py +174 -0
- package/template/.claude/skills/hallmark-explore/scripts/scaffold_exploration.py +122 -0
- package/template/.claude/skills/hallmark-loop/SKILL.md +105 -0
- package/template/.claude/skills/hallmark-loop/references/auditor-call.md +60 -0
- package/template/.claude/skills/hallmark-loop/references/capture.md +78 -0
- package/template/.claude/skills/hallmark-loop/references/loop-control.md +79 -0
- package/template/.claude/skills/handoff/SKILL.md +15 -0
- package/template/.claude/skills/install.ps1 +42 -0
- package/template/.claude/skills/install.sh +54 -0
- package/template/.claude/skills/knowledge-crunching/SKILL.md +130 -0
- package/template/.claude/skills/knowledge-crunching/assets/context.template.md +59 -0
- package/template/.claude/skills/knowledge-crunching/references/crunching-dialogue.md +113 -0
- package/template/.claude/skills/research/SKILL.md +69 -0
- package/template/.claude/skills/skill-creator/LICENSE.txt +202 -0
- package/template/.claude/skills/skill-creator/SKILL.md +149 -0
- package/template/.claude/skills/skill-creator/agents/analyzer.md +274 -0
- package/template/.claude/skills/skill-creator/agents/comparator.md +202 -0
- package/template/.claude/skills/skill-creator/agents/grader.md +223 -0
- package/template/.claude/skills/skill-creator/assets/eval_review.html +146 -0
- package/template/.claude/skills/skill-creator/eval-viewer/generate_review.py +471 -0
- package/template/.claude/skills/skill-creator/eval-viewer/viewer.html +1325 -0
- package/template/.claude/skills/skill-creator/references/benchmark-optimization-guide.md +86 -0
- package/template/.claude/skills/skill-creator/references/distribution-guide.md +79 -0
- package/template/.claude/skills/skill-creator/references/eval-infrastructure-guide.md +129 -0
- package/template/.claude/skills/skill-creator/references/eval-schemas.md +121 -0
- package/template/.claude/skills/skill-creator/references/mcp-skills-integration.md +71 -0
- package/template/.claude/skills/skill-creator/references/metadata-quality-criteria.md +94 -0
- package/template/.claude/skills/skill-creator/references/plugin-marketplace-hosting.md +104 -0
- package/template/.claude/skills/skill-creator/references/plugin-marketplace-overview.md +89 -0
- package/template/.claude/skills/skill-creator/references/plugin-marketplace-schema.md +93 -0
- package/template/.claude/skills/skill-creator/references/plugin-marketplace-sources.md +103 -0
- package/template/.claude/skills/skill-creator/references/plugin-marketplace-troubleshooting.md +76 -0
- package/template/.claude/skills/skill-creator/references/script-quality-criteria.md +106 -0
- package/template/.claude/skills/skill-creator/references/skill-anatomy-and-requirements.md +77 -0
- package/template/.claude/skills/skill-creator/references/skill-creation-workflow.md +151 -0
- package/template/.claude/skills/skill-creator/references/skill-design-patterns.md +75 -0
- package/template/.claude/skills/skill-creator/references/skillmark-benchmark-criteria.md +102 -0
- package/template/.claude/skills/skill-creator/references/structure-organization-criteria.md +114 -0
- package/template/.claude/skills/skill-creator/references/testing-and-iteration.md +78 -0
- package/template/.claude/skills/skill-creator/references/token-efficiency-criteria.md +74 -0
- package/template/.claude/skills/skill-creator/references/troubleshooting-guide.md +81 -0
- package/template/.claude/skills/skill-creator/references/validation-checklist.md +83 -0
- package/template/.claude/skills/skill-creator/references/writing-effective-instructions.md +88 -0
- package/template/.claude/skills/skill-creator/references/yaml-frontmatter-reference.md +92 -0
- package/template/.claude/skills/skill-creator/scripts/aggregate_benchmark.py +401 -0
- package/template/.claude/skills/skill-creator/scripts/encoding_utils.py +36 -0
- package/template/.claude/skills/skill-creator/scripts/generate_report.py +326 -0
- package/template/.claude/skills/skill-creator/scripts/improve_description.py +248 -0
- package/template/.claude/skills/skill-creator/scripts/init_skill.py +360 -0
- package/template/.claude/skills/skill-creator/scripts/package_skill.py +143 -0
- package/template/.claude/skills/skill-creator/scripts/quick_validate.py +110 -0
- package/template/.claude/skills/skill-creator/scripts/run_eval.py +310 -0
- package/template/.claude/skills/skill-creator/scripts/run_loop.py +332 -0
- package/template/.claude/skills/skill-creator/scripts/utils.py +47 -0
- package/template/.claude/skills/tdd/SKILL.md +142 -0
- package/template/.claude/skills/tdd/assets/Directory.Build.props +26 -0
- package/template/.claude/skills/tdd/deep-modules.md +15 -0
- package/template/.claude/skills/tdd/dotnet-build-config.md +21 -0
- package/template/.claude/skills/tdd/interface-design.md +31 -0
- package/template/.claude/skills/tdd/mocking.md +59 -0
- package/template/.claude/skills/tdd/refactoring.md +10 -0
- package/template/.claude/skills/tdd/test-per-layer.md +69 -0
- package/template/.claude/skills/tdd/tests.md +61 -0
- package/template/.claude/statusline.cjs +0 -0
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* Canonical Context Map example for the context-map skill.
|
|
2
|
+
*
|
|
3
|
+
* Grammar reference: ./reference/Context Map.md
|
|
4
|
+
* Role combination rules: ./reference/Semantic Rules.md
|
|
5
|
+
*
|
|
6
|
+
* Shows all four relationship shapes (Partnership, Shared Kernel,
|
|
7
|
+
* Upstream-Downstream, Customer-Supplier) with the full attribute
|
|
8
|
+
* vocabulary so per-wall maps have a single place to copy from.
|
|
9
|
+
*
|
|
10
|
+
* This file is intended to compile clean against `cm validate -i <file>.cml`
|
|
11
|
+
* (Context Mapper CLI 6.12+). Every Bounded Context referenced in the
|
|
12
|
+
* ContextMap must also be declared as a `BoundedContext <Name>` below —
|
|
13
|
+
* forgetting that produces the Xtext linking error:
|
|
14
|
+
* "Couldn't resolve reference to BoundedContext '<Name>'."
|
|
15
|
+
* "The Bounded Context 'null' is not part of the Context Map."
|
|
16
|
+
*/
|
|
17
|
+
|
|
18
|
+
ContextMap DDDSampleContextMap {
|
|
19
|
+
type = SYSTEM_LANDSCAPE
|
|
20
|
+
state = AS_IS
|
|
21
|
+
|
|
22
|
+
contains CargoBookingContext, VoyagePlanningContext, LocationContext
|
|
23
|
+
contains ContractsContext, ClaimsContext
|
|
24
|
+
contains CustomerSelfServiceContext, CustomerManagementContext
|
|
25
|
+
contains PrintingContext, PolicyManagementContext
|
|
26
|
+
|
|
27
|
+
/* Shared Kernel (symmetric) --------------------------------------------
|
|
28
|
+
* Two contexts share a common subset of the model (a library, a package).
|
|
29
|
+
* Changes on either side need coordinated review.
|
|
30
|
+
*/
|
|
31
|
+
CargoBookingContext [SK]<->[SK] VoyagePlanningContext : BookingVoyageRelationship {
|
|
32
|
+
implementationTechnology = "Java Library"
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/* Partnership (symmetric) ----------------------------------------------
|
|
36
|
+
* Two contexts succeed or fail together. Joint planning, shared roadmap.
|
|
37
|
+
*/
|
|
38
|
+
ContractsContext [P]<->[P] ClaimsContext : ContractClaimRelationship {
|
|
39
|
+
implementationTechnology = "Messaging"
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/* Upstream-Downstream with OHS / PL / ACL ------------------------------
|
|
43
|
+
* Upstream publishes a stable, documented API in a Published Language.
|
|
44
|
+
* Downstream wraps incoming data in an Anti-Corruption Layer to keep
|
|
45
|
+
* upstream model leakage out of its own domain.
|
|
46
|
+
*/
|
|
47
|
+
CargoBookingContext [D,ACL]<-[U,OHS,PL] LocationContext : CargoLocationRelationship {
|
|
48
|
+
implementationTechnology = "RESTful HTTP"
|
|
49
|
+
downstreamRights = VETO_RIGHT
|
|
50
|
+
exposedAggregates = Locations, Addresses
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* Customer-Supplier (asymmetric, downstream has influence) -------------
|
|
54
|
+
* Special case of upstream-downstream: downstream's priorities factor
|
|
55
|
+
* into upstream planning. Note: CF and OHS are NOT applicable here
|
|
56
|
+
* (semantic-rule errors). ACL is allowed but emits a semantic WARNING
|
|
57
|
+
* (rule #7 in Semantic Rules.md) — kept here to show the form.
|
|
58
|
+
*/
|
|
59
|
+
CustomerSelfServiceContext [D,C,ACL]<-[U,S,PL] CustomerManagementContext : CustomerFrontendBackendRelationship {
|
|
60
|
+
implementationTechnology = "RESTful HTTP"
|
|
61
|
+
downstreamRights = OPINION_LEADER
|
|
62
|
+
exposedAggregates = Customers
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/* Upstream-Downstream with CF (no ACL) ---------------------------------
|
|
66
|
+
* Downstream conforms to the upstream model wholesale — no translation.
|
|
67
|
+
* Cheap to integrate, but downstream becomes coupled to upstream changes.
|
|
68
|
+
*/
|
|
69
|
+
PolicyManagementContext [D,CF]<-[U,OHS,PL] PrintingContext {
|
|
70
|
+
implementationTechnology = "SOAP"
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* ---------------------------------------------------------------------------
|
|
75
|
+
* Bounded Context declarations.
|
|
76
|
+
*
|
|
77
|
+
* Each name used above in `contains` and in relationship lines must resolve
|
|
78
|
+
* to a BoundedContext declaration somewhere in the file. Empty bodies are
|
|
79
|
+
* legal — declarations can stay minimal in a strategic-only map.
|
|
80
|
+
*
|
|
81
|
+
* Aggregates referenced by `exposedAggregates` MUST live inside the upstream
|
|
82
|
+
* BoundedContext of the relationship — see the LocationContext block (which
|
|
83
|
+
* owns Locations + Addresses, exposed to CargoBookingContext) and the
|
|
84
|
+
* CustomerManagementContext block (which owns Customers, exposed to
|
|
85
|
+
* CustomerSelfServiceContext).
|
|
86
|
+
* --------------------------------------------------------------------------- */
|
|
87
|
+
|
|
88
|
+
BoundedContext CargoBookingContext
|
|
89
|
+
BoundedContext VoyagePlanningContext
|
|
90
|
+
|
|
91
|
+
BoundedContext LocationContext {
|
|
92
|
+
Aggregate Locations
|
|
93
|
+
Aggregate Addresses
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
BoundedContext ContractsContext
|
|
97
|
+
BoundedContext ClaimsContext
|
|
98
|
+
|
|
99
|
+
BoundedContext CustomerSelfServiceContext
|
|
100
|
+
|
|
101
|
+
BoundedContext CustomerManagementContext {
|
|
102
|
+
Aggregate Customers
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
BoundedContext PrintingContext
|
|
106
|
+
BoundedContext PolicyManagementContext
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
An aggregate can further contain Services, Resources, Consumers and SimpleDomainObjects (Entities, Value Objects, Domain Events, etc.)
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
```cml
|
|
2
|
+
BoundedContext CustomerManagementContext implements CustomerManagementDomain {
|
|
3
|
+
type = FEATURE
|
|
4
|
+
domainVisionStatement = "The customer management context is responsible for ..."
|
|
5
|
+
implementationTechnology = "Java, JEE Application"
|
|
6
|
+
responsibilities = "Customers", "Addresses"
|
|
7
|
+
knowledgeLevel = CONCRETE
|
|
8
|
+
|
|
9
|
+
Module addresses {
|
|
10
|
+
Aggregate Addresses {
|
|
11
|
+
Entity Address {
|
|
12
|
+
String city
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
Aggregate Customers {
|
|
17
|
+
Entity Customer {
|
|
18
|
+
aggregateRoot
|
|
19
|
+
|
|
20
|
+
- SocialInsuranceNumber sin
|
|
21
|
+
String firstname
|
|
22
|
+
String lastname
|
|
23
|
+
- List<Address> addresses
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Note: Bounded Context names must be unique within your CML model.
|
|
30
|
+
|
|
31
|
+
[[implements]]
|
|
32
|
+
[[refines]]
|
|
33
|
+
[[domainVisionStatement]]
|
|
34
|
+
[[implementationTechnology]]
|
|
35
|
+
[[responsibilities]]
|
|
36
|
+
[[Domain-Driven Design/Context Map/Bounded Context/type]]
|
|
37
|
+
[[knowledgeLevel]]
|
|
38
|
+
[[businessModel]]
|
|
39
|
+
[[evolution]]
|
|
40
|
+
[[realizes]]
|
|
41
|
+
[[Bounded Context Relationship]]
|
package/template/.claude/skills/context-map/reference/Bounded Context/domainVisionStatement.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
The `domainVisionStatement` keyword describes the vision statement of your bounded context, according to the DDD Domain Vision Statement pattern. https://contextmapper.org/docs/domain-vision-statement/
|
|
2
|
+
|
|
3
|
+
Can be used in a [[Domain-Driven Design/Context Map/Bounded Context/Bounded Context|Bounded Context]], a [[Domain]], and a subdomain.
|
package/template/.claude/skills/context-map/reference/Bounded Context/implementationTechnology.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
The `implementationTechnology` adds information about how the corresponding bounded context is implemented. Note that this attribute does not correspond to any DDD pattern.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
The `implements` keyword specifies which domain or subdomains are implemented by this bounded context. Behind the `implements` keyword you can either reference a list of subdomains (comma-separated) or one top-level domain.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
If your bounded context is of the type TEAM, you can specify which bounded context the team implements by using the `realizes` keyword. The following example illustrates this:
|
|
2
|
+
|
|
3
|
+
```cml
|
|
4
|
+
BoundedContext CustomersBackofficeTeam implements CustomerManagementDomain realizes CustomerManagementContext {
|
|
5
|
+
type = TEAM
|
|
6
|
+
domainVisionStatement = "This team is responsible for implementing ..."
|
|
7
|
+
}
|
|
8
|
+
```
|
|
9
|
+
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
The `refines` keyword allows you to create some kind of an inheritance hierarchy in case one bounded context can be seen as a refinement of another bounded context.
|
|
2
|
+
However, note that this is only a modeling information and generators do not recursively resolve the domain model (Aggregates, etc.) of refined bounded contexts.
|
|
3
|
+
|
|
4
|
+
```cml
|
|
5
|
+
BoundedContext ContextMapperTool refines StrategicDomainDrivenDesignContext {
|
|
6
|
+
type FEATURE
|
|
7
|
+
domainVisionStatement "Context Mapper provides a formal way to model strategic DDD Context Maps."
|
|
8
|
+
implementationTechnology "Java, Eclipse"
|
|
9
|
+
}
|
|
10
|
+
```
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
With the `responsibilities` keyword you are allowed to specify the responsibilities of the bounded context, according to the DDD Responsibility Layers pattern.
|
|
2
|
+
|
|
3
|
+
Can be used on [[Domain-Driven Design/Context Map/Bounded Context/Bounded Context|Bounded Context]]s and [[Aggregate]]s to specify their responsibilities.
|
|
4
|
+
|
|
5
|
+
```cml
|
|
6
|
+
BoundedContext CustomerManagementContext implements CustomerManagementDomain {
|
|
7
|
+
type = FEATURE
|
|
8
|
+
domainVisionStatement = "The customer management context is responsible for ..."
|
|
9
|
+
implementationTechnology = "Java, JEE Application"
|
|
10
|
+
responsibilities = "Customers", "Addresses"
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
Aggregate Customers {
|
|
14
|
+
responsibilities = "Customers", "Addresses"
|
|
15
|
+
|
|
16
|
+
Entity Customer {
|
|
17
|
+
aggregateRoot
|
|
18
|
+
|
|
19
|
+
- SocialInsuranceNumber sin
|
|
20
|
+
String firstname
|
|
21
|
+
String lastname
|
|
22
|
+
- List<Address> addresses
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Bounded Context Type
|
|
2
|
+
|
|
3
|
+
The `type` provides an indicator for which reason a bounded context may have been evolved. It further allows you to specify from which viewpoint you describe your bounded contexts.
|
|
4
|
+
|
|
5
|
+
- `FEATURE`: analysis or early design abstractions, taking a functional scenario view
|
|
6
|
+
- For example, everything that is related to customer management in an insurance scenario: create customer, update customer, update customer address, etc.
|
|
7
|
+
- `APPLICATION`: represent more elaborated, logical designs and implementation views
|
|
8
|
+
- For example: a self-service frontend application for the customers, a backend system to manage the customers and contract, etc.
|
|
9
|
+
- An application typically encompasses multiple functional features. In a (micro-)service-oriented architecture, each (micro-)service can be seen as an application.
|
|
10
|
+
- `SYSTEM`: contexts add a more physical, process- and deployment-oriented view
|
|
11
|
+
- Examples for systems: a single page application for the frontend, a Spring Boot application that realizes the domain logic, an Oracle database that holds the data, etc.
|
|
12
|
+
- An application typically consists of multiple systems.
|
|
13
|
+
- `TEAM`: allows you to specify which team is implementing which bounded contexts
|
|
14
|
+
- For example: multiple teams work on different parts of the software: customer frontend team, customer backend\_ team, contracts team, etc.
|
|
15
|
+
|
|
16
|
+
## Example: The "Returns" Domain
|
|
17
|
+
|
|
18
|
+
1. Feature Context: We identify "Return Eligibility." This is purely a business concept: rules checking if an item is within the 30-day window and undamaged. It doesn't imply a server or a database yet.
|
|
19
|
+
2. Application Context: We design the "Returns Service." This is a deployable logical unit (a Microservice) that handles eligibility, printing labels, and refund triggering. It encapsulates the "Return Eligibility" feature.
|
|
20
|
+
3. System Context: When deploying, the "Returns Service" is actually split into two physical pieces:
|
|
21
|
+
- "Returns Backend API" (Spring Boot container).
|
|
22
|
+
- "Returns Dashboard" (React SPA for warehouse workers). These are two separate SYSTEM contexts.
|
|
23
|
+
1. Team Context: All of the above is owned by "Team After-Sales", a squad of 6 developers.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
symmetric relationships
|
|
2
|
+
- [[Partnership (P)]]
|
|
3
|
+
- [[Shared Kernel (SK)]]
|
|
4
|
+
asymmetric relationships
|
|
5
|
+
- Upstream-Downstream (generic)
|
|
6
|
+
- [[Customer-Supplier (C-S)]], a special form of an Upstream-Downstream relationship
|
|
7
|
+
|
|
8
|
+
```cml
|
|
9
|
+
CargoBookingContext [D]<-[U] LocationContext
|
|
10
|
+
|
|
11
|
+
// A colon at the end assigns a relationship a name
|
|
12
|
+
LocationContext Upstream-Downstream CargoBookingContext : CargoLocationRelationship
|
|
13
|
+
```
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
The customer-supplier relationship is a special case of a upstream-downstream relationship
|
|
2
|
+
|
|
3
|
+
A customer-supplier relationship is an upstream-downstream relationship where the downstream priorities factor into upstream planning.
|
|
4
|
+
The upstream team may succeed interdependently of the fate of the downstream team and therefore the needs of the downstream have to be addressed by the upstream. They interact as customer and supplier.
|
|
5
|
+
|
|
6
|
+
```cml
|
|
7
|
+
CustomerSelfServiceContext [D,C]<-[U,S] CustomerManagementContext
|
|
8
|
+
|
|
9
|
+
CustomerSelfServiceContext Customer-Supplier CustomerManagementContext
|
|
10
|
+
|
|
11
|
+
CustomerSelfServiceContext [C]<-[S] CustomerManagementContext
|
|
12
|
+
|
|
13
|
+
CustomerSelfServiceContext [D,C,ACL]<-[U,S,PL] CustomerManagementContext : Customer_Frontend_Backend_Relationship { // Relationship name is optional
|
|
14
|
+
implementationTechnology = "RESTful HTTP"
|
|
15
|
+
|
|
16
|
+
CustomerSelfServiceContext[ACL] Customer-Supplier [PL]CustomerManagementContext
|
|
17
|
+
}
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
The [[Conformist]] pattern is not applicable in a Customer/Supplier relationship.
|
|
21
|
+
The [[Open Host Service]] pattern is not applicable in a Customer/Supplier relationship.
|
|
22
|
+
The [[Anticorruption Layer]] pattern can be used in a Customer/Supplier relationship, but this leads to contradictions with the original pattern definition according to our understanding.
|
|
23
|
+
The usage of Anticorruption Layer in a Customer/Supplier relationship produces a Warning only.
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
```cml
|
|
2
|
+
ContractsContext [P]<->[P] ClaimsContext {
|
|
3
|
+
implementationTechnology = "Messaging"
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
ContractsContext Partnership ClaimsContext {
|
|
7
|
+
implementationTechnology = "Messaging"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
// With a colon it is possible (optionally) to add a relationship name to the specification
|
|
11
|
+
ContractsContext [P]<->[P] ClaimsContext : ContractClaimRelationship {
|
|
12
|
+
implementationTechnology = "Messaging"
|
|
13
|
+
}
|
|
14
|
+
```
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
```cml
|
|
2
|
+
CargoBookingContext [SK]<->[SK] VoyagePlanningContext {
|
|
3
|
+
implementationTechnology = "Java Library"
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
argoBookingContext Shared-Kernel VoyagePlanningContext {
|
|
7
|
+
implementationTechnology = "Java Library"
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
CargoBookingContext Shared-Kernel VoyagePlanningContext : BookingVoyageRelationship {
|
|
11
|
+
implementationTechnology = "Java Library"
|
|
12
|
+
}
|
|
13
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
A context map contains bounded contexts and defines their relationships.
|
|
2
|
+
|
|
3
|
+
```cml
|
|
4
|
+
ContextMap DDDSampleContextMap {
|
|
5
|
+
type SYSTEM_LANDSCAPE
|
|
6
|
+
state AS_IS
|
|
7
|
+
// type = SYSTEM_LANDSCAPE
|
|
8
|
+
// state = AS_IS
|
|
9
|
+
|
|
10
|
+
contains CargoBookingContext, VoyagePlanningContext, LocationContext
|
|
11
|
+
// contains CargoBookingContext
|
|
12
|
+
// contains VoyagePlanningContext
|
|
13
|
+
// contains LocationContext
|
|
14
|
+
|
|
15
|
+
CargoBookingContext [SK]<->[SK] VoyagePlanningContext
|
|
16
|
+
}
|
|
17
|
+
```
|
|
18
|
+
A context map can be of one of the following `type`s:
|
|
19
|
+
- `SYSTEM_LANDSCAPE` represents the default type of context map in which the bounded contexts represent software systems (or applications).
|
|
20
|
+
- `ORGANIZATIONAL` map (or ‘team map’) illustrates the relationships between teams.
|
|
21
|
+
|
|
22
|
+
The `state` expressing whether the given context map represents the current or a desired state:
|
|
23
|
+
- `AS_IS`: Current State
|
|
24
|
+
- `TO_BE`: Desired State
|
|
25
|
+
[[Bounded Context Relationship]]
|
|
26
|
+
# Relationship Roles
|
|
27
|
+
You can further specify the relationship roles such as Open Host Service (OHS) or Anti-Corruption Layer (ACL) within the brackets. Roles must always be specified behind the U (upstream) and the D (downstream) if they are not omitted.
|
|
28
|
+
|
|
29
|
+
```cml
|
|
30
|
+
VoyagePlanningContext [D,ACL]<-[U,OHS,PL] LocationContext
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
Upstream roles:
|
|
34
|
+
- Open Host Service (OHS)
|
|
35
|
+
- Published Language (PL)
|
|
36
|
+
The patterns OHS and PL can only be implemented by the upstream context in an upstream-downstream relationship. The upstream context always provides and exposes a certain functionality. The downstream context uses and consumes this services and does not expose parts of his/her own domain model. If this was the case and the upstream used this functionality, the definition that the upstream is independent of the downstream would be contradicted.
|
|
37
|
+
|
|
38
|
+
Downstream roles:
|
|
39
|
+
- Conformist (CF)
|
|
40
|
+
- Anticorruption Layer (ACL).
|
|
41
|
+
# Relationship Attributes
|
|
42
|
+
`implementationTechnology`: Within the body of the declaration, it is possible to specify the implementation technology used to realize this relationship:
|
|
43
|
+
|
|
44
|
+
`downstreamRights`: defines which governance rights, and therefore which influence, the downstream has on the upstream within the specified relationship:
|
|
45
|
+
The possible governance rights values are:
|
|
46
|
+
- INFLUENCER
|
|
47
|
+
- OPINION_LEADER
|
|
48
|
+
- VETO_RIGHT
|
|
49
|
+
- DECISION_MAKER
|
|
50
|
+
- MONOPOLIST
|
|
51
|
+
|
|
52
|
+
`exposedAggregates`: offers the possibility to declare which Aggregates of the upstream bounded context are exposed in order to realize this relationship. The attribute takes a comma-separated list of references to Aggregates. The referenced Aggregates must be part of the upstream context of the relationship.
|
|
53
|
+
|
|
54
|
+
```cml
|
|
55
|
+
VoyagePlanningContext [D,ACL]<-[U,OHS,PL] LocationContext {
|
|
56
|
+
implementationTechnology = "RESTful HTTP"
|
|
57
|
+
downstreamRights = VETO_RIGHT
|
|
58
|
+
exposedAggregates = Customers, Addresses
|
|
59
|
+
}
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
[[Bounded Context]]
|
|
63
|
+
[[Semantic Rules]]
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
Domains are defined on the root level of a CML file.
|
|
2
|
+
They provide a container to specify all subdomains which are then referenced on a bounded context with the `implements` keyword.
|
|
3
|
+
A bounded context can also implement the compete domain.
|
|
4
|
+
|
|
5
|
+
```cml
|
|
6
|
+
/* Syntax example: Domain and Subdomains */
|
|
7
|
+
Domain Insurance {
|
|
8
|
+
domainVisionStatement = "Insurance domain vision statement ..."
|
|
9
|
+
|
|
10
|
+
Subdomain CustomerManagementDomain {
|
|
11
|
+
type = CORE_DOMAIN
|
|
12
|
+
domainVisionStatement = "Subdomain managing everything customer-related."
|
|
13
|
+
|
|
14
|
+
Entity Customer {
|
|
15
|
+
String firstname
|
|
16
|
+
String familyname
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/* Add more entities ... */
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
Subdomain ContractManagementDomain {}
|
|
23
|
+
|
|
24
|
+
/* Add more subdomains ... */
|
|
25
|
+
}
|
|
26
|
+
```
|
|
27
|
+
[[domainVisionStatement]]
|
|
28
|
+
[[Domain-Driven Design/Context Map/Domain/type|type]]
|
|
29
|
+
[[supports]]
|
|
30
|
+
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
The `supports` keyword specifies which user requirements a Subdomain implements.
|
|
2
|
+
|
|
3
|
+
```cml
|
|
4
|
+
/* Syntax example for Subdomain that supports specific user requirements: */
|
|
5
|
+
Domain Insurance {
|
|
6
|
+
domainVisionStatement = "Insurance domain vision statement ..."
|
|
7
|
+
|
|
8
|
+
Subdomain CustomerManagementDomain supports CreateCustomers, CreateCustomerAddresses {
|
|
9
|
+
type = CORE_DOMAIN
|
|
10
|
+
domainVisionStatement = "Subdomain managing everything customer-related."
|
|
11
|
+
|
|
12
|
+
Entity Customer {
|
|
13
|
+
String firstname
|
|
14
|
+
String familyname
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
UserStory CreateCustomers {
|
|
21
|
+
As an "Insurance Employee"
|
|
22
|
+
I want to "create" a "Customer" with its "firstname", "lastname"
|
|
23
|
+
so that "I am able to manage the customers data and offer them insurance contracts."
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
UserStory CreateCustomerAddresses {
|
|
27
|
+
As an "Insurance Employee"
|
|
28
|
+
I want to "create" an "Address" for a "Customer"
|
|
29
|
+
I want to "update" an "Address" for a "Customer"
|
|
30
|
+
so that "I am able to manage the customers addresses."
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
[[UserStory]]
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
The following semantic rules are either implicitly given by the domain model on which the language is based (see above), or enforced by corresponding semantic checkers.
|
|
2
|
+
|
|
3
|
+
Note that the model and the semantic rules express how we understand the DDD patterns and how they can be combined, and how we applied DDD on projects ourselves. Rationale: the literature is somewhat ambiguous.
|
|
4
|
+
|
|
5
|
+
# 1: Permitted Upstream Roles
|
|
6
|
+
The patterns OHS and PL can only be implemented by the upstream context in an upstream-downstream relationship. The upstream context always provides and exposes a certain functionality. The downstream context uses and consumes this services and does not expose parts of his/her own domain model. If this was the case and the upstream used this functionality, the definition that the upstream is independent of the downstream would be contradicted.
|
|
7
|
+
|
|
8
|
+
# 2: Permitted Downstream Roles
|
|
9
|
+
The patterns ACL and CF can only be applied by the downstream context in an upstream-downstream relationship. These patterns solve a downstream problem, namely how to deal with a dependency to another context. It is always the downstream context that has to integrate the upstream model.
|
|
10
|
+
|
|
11
|
+
# 3: Protect or Conform
|
|
12
|
+
The patterns ACL and CF cannot be applied jointly, but provide alternatives. The downstream either conforms (CF) or protects itself with an ACL.
|
|
13
|
+
|
|
14
|
+
# 4: Integrity of Symmetric Relationships
|
|
15
|
+
The patterns OHS, PL, ACL and CF are not applicable in symmetric relationships (Partnership and Shared Kernel), since doing so would lead to contradictions with the pattern definitions. In a Shared Kernel relationship, the two contexts communicate over shared code such as a library. Both contexts manage the shared code together, which clearly contradicts with the mentioned four pattern definitions. An OHS indicates a directed provider/consumer behavior which is not the case here. There is no need for a common inter-context language (PL), since the two contexts simply share the same model. An ACL is not required either since the two participants share the model anyway. And neither context has to conform to the model of the other since it is one shared model. In a Partnership relationship both contexts depend on each other, which means they can only succeed or fail together.
|
|
16
|
+
|
|
17
|
+
# 5: Customer vs. Conformist
|
|
18
|
+
The CF pattern is not applicable within a customer-supplier relationship. In a customer-supplier relationship the customer has influence on the supplier and can at least negotiate regarding priorities of the requirements and the implementation. A conformist in contrast has no influence and simply decides to conform to what the upstream provides.
|
|
19
|
+
|
|
20
|
+
# 6: Generic vs. Custom Service
|
|
21
|
+
The OHS pattern is not applicable within a customer-supplier relationship. Whereas the customer-supplier pattern implies that the involved teams work closely together, meaning that the upstream respects the downstreams requirements in his planning sessions, the OHS pattern indicates that the upstream team decides to implement one API in a one for all approach. This is contradictory since it is unlikely that such an upstream implementing an OHS is able to have a close customer-supplier relationship with all its downstreams. From personal practical experience a customer-supplier relationship leads to individual requirements of single customers. As soon as the supplier implements a customer-specific API feature it is by pattern definition no longer an OHS.
|
|
22
|
+
|
|
23
|
+
# 7: Protect or Cooperate
|
|
24
|
+
The ACL pattern should not be used within a customer-supplier relationship. Changes of the supplier should be in-sync with the needs of the customer. Protection should be unnecessary. Note that this is only a soft rule since the combination is possible but not common. Our tool issues a warning rather than an error message if it detects a violation of the rule.
|
|
25
|
+
|
|
26
|
+
# 8: ORGANIZATIONAL Context Maps
|
|
27
|
+
A context map of the type ORGANIZATIONAL (team map), can only contain bounded contexts of the type TEAM. This checker provides consistency within team maps. On such a map a bounded context represents a team and not a classical bounded context such as a system, feature or application.
|
|
28
|
+
|
|
29
|
+
# 9: SYSTEM LANDSCAPES
|
|
30
|
+
A bounded context of the type TEAM can not be contained by a context map of the type SYSTEM_LANDSCAPE. This checker provides consistency within context maps. Can be seen as the inverse case of rule #8.
|
|
31
|
+
|
|
32
|
+
# 10: Teams realize Bounded Contexts
|
|
33
|
+
Only teams can realize bounded contexts. This checker ensures that the realize keyword can only be used for bounded contexts of the type TEAM. The keyword is added to the language definition in order to reference the bounded contexts a team is realizing. It would not make sense for a classical bounded context (system, feature or application).
|