cml_create_relationship
Create relationships between bounded contexts: symmetric types (Partnership, SharedKernel) or asymmetric (UpstreamDownstream) with optional upstream/downstream patterns (OHS, PL, ACL, CF).
Instructions
Create a relationship between bounded contexts. Types: Partnership, SharedKernel (symmetric), UpstreamDownstream (asymmetric with optional OHS/PL upstream patterns and ACL/CF downstream patterns)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Optional name for the relationship | |
| type | Yes | Type of relationship | |
| upstream | No | Upstream context (for UpstreamDownstream) | |
| downstream | No | Downstream context (for UpstreamDownstream) | |
| participant1 | No | First participant (for symmetric relationships) | |
| participant2 | No | Second participant (for symmetric relationships) | |
| upstreamPatterns | No | Upstream patterns: OHS (Open Host Service), PL (Published Language) | |
| exposedAggregates | No | Aggregates exposed by the upstream context | |
| downstreamPatterns | No | Downstream patterns: ACL (Anticorruption Layer), CF (Conformist) |