Partnership

The Partnership pattern describes a symmetric relationship between two bounded contexts and is used within a context map in CML. The Language Semantics page describes all relationship types that are supported in CML.

Syntax

Note that currently two different syntax variants exist. The following code snippets illustrate both variants:

ContractsContext [P]<->[P] ClaimsContext {
  implementationTechnology = "Messaging"
}

Note that with this syntax (with the arrows <->) it does not matter which bounded context is on which side, since this is a symmetric relationship. If you switch the bounded contexts, it has the same meaning semantically.

ContractsContext Partnership ClaimsContext {
  implementationTechnology = "Messaging"
}

Implementation Technology

With the implementationTechnology keyword you can specify how the relationship is implemented.

Relationship Name

With a colon it is possible (optionally) to add a relationship name to the specification, as illustrated within this example:

ContractsContext [P]<->[P] ClaimsContext : ContractClaimRelationship {
  implementationTechnology = "Messaging"
}