forked from ContextMapper/context-mapper-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
example-output.cml
96 lines (84 loc) · 2.31 KB
/
example-output.cml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
/* This is an example output file for the 'Merge Bounded Contexts' refactoring and shows a small part of the insurance example. */
ContextMap {
contains CustomerManagementContext
contains PrintingContext
CustomerManagementContext [D,ACL]<-[U,OHS,PL] PrintingContext {
implementationTechnology = "SOAP"
exposedAggregates = Printing
}
}
/**
* The merged bounded context after applying 'Merge Bounded Contexts' to 'example-input.cml'.
* We selected the 'CustomerSelfServiceContext' context as second bounded context.
*/
BoundedContext CustomerManagementContext implements CustomerManagementDomain {
domainVisionStatement = "The customer management context is responsible for managing all the data of the insurance companies customers."
responsibilities = "Customers, Addresses" , "AddressChange"
implementationTechnology = "Java, JEE Application"
Aggregate Customers {
Entity Customer {
aggregateRoot
- SocialInsuranceNumber sin
String firstname
String lastname
- List<Address> addresses
}
Entity Address {
String street
int postalCode
String city
}
ValueObject SocialInsuranceNumber {
String sin key
}
}
Aggregate CustomerFrontend {
Entity CustomerAddressChange {
aggregateRoot
- UserAccount issuer
- Address changedAddress
}
}
Aggregate Acounts {
Entity UserAccount {
aggregateRoot
String username
- Customer accountCustomer
}
}
}
BoundedContext PrintingContext implements PrintingDomain {
domainVisionStatement = "An external system which provides printing services to the other Bounded Contexts."
type = SYSTEM
responsibilities = "Document Printing"
Aggregate Printing {
Entity PrintingJob {
aggregateRoot
int printingId
- Document document
- Template template
}
Entity Document {
DomainObject source
String template
}
}
Aggregate Templating {
Entity Template {
aggregateRoot
int templateId
String templateName
}
}
}
/* Domain & Subdomain Definitions */
Domain InsuranceDomain {
Subdomain CustomerManagementDomain {
type = CORE_DOMAIN
domainVisionStatement = "Subdomain managing everything customer-related."
}
Subdomain PrintingDomain {
type = SUPPORTING_DOMAIN
domainVisionStatement = "Service (external system) to solve printing for all kinds of documents (debts, policies, etc.)"
}
}