forked from ContextMapper/context-mapper-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-output.cml
62 lines (51 loc) · 1.71 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
/* This is an example output file for the 'Split Bounded Context by Owner' refactoring and shows a small part of the insurance example. */
ContextMap {
contains CustomerSelfServiceContext
}
BoundedContext CustomerSelfServiceContext implements CustomerManagementDomain {
domainVisionStatement = "This context represents a web application which allows the customer to login and change basic data records like the address."
type = APPLICATION
responsibilities = "AddressChange"
implementationTechnology = "PHP Web Application"
Aggregate CustomerFrontend {
owner = CustomerFrontendTeam
Entity CustomerAddressChange {
aggregateRoot
- UserAccount issuer
Address changedAddress
}
}
}
/* Team Definitions */
BoundedContext CustomerBackendTeam {
type = TEAM
}
BoundedContext CustomerFrontendTeam {
type = TEAM
}
/**
* The new bounded context created by the 'Split Bounded Context by Owners' refactoring applied to 'example-input.cml'.
*
* Note that the refactoring does not produce meaningful bounded context names. You can use the 'Rename Element' refactoring (SHIFT-ALT-R)
* to rename the new aggregate.
*
* The automated refactorings add newly created bounded contexts at the end of the 'bounded context' block, which might not always be the
* desired order. You may change the order after the refactoring manually.
*/
BoundedContext NewBoundedContext1 {
Aggregate Acounts {
owner = CustomerBackendTeam
Entity UserAccount {
aggregateRoot
String username
Customer accountCustomer
}
}
}
/* Domain & Subdomain Definitions */
Domain InsuranceDomain {
Subdomain CustomerManagementDomain {
type = CORE_DOMAIN
domainVisionStatement = "Subdomain managing everything customer-related."
}
}