-
-
Notifications
You must be signed in to change notification settings - Fork 81
/
Copy pathexample-input.cml
42 lines (35 loc) · 1.29 KB
/
example-input.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
/* This is an example input file for the 'Extract Aggregates by Volatility' refactoring and shows a small part of the insurance example. */
ContextMap {
contains CustomerSelfServiceContext
}
/* With a right-click on the 'CustomerSelfServiceContext' bounded context you can execute the 'Extract Aggregates by Volatility'
* refactoring. If you choose the volatility 'OFTEN', it will extract the volatile 'CustomerFrontend' aggregate and create a new bounded context for it.
*/
BoundedContext CustomerSelfServiceContext implements CustomerManagementDomain {
type = APPLICATION
domainVisionStatement = "This context represents a web application which allows the customer to login and change basic data records like the address."
responsibilities = "AddressChange"
implementationTechnology = "PHP Web Application"
Aggregate CustomerFrontend {
likelihoodForChange = OFTEN
Entity CustomerAddressChange {
aggregateRoot
- UserAccount issuer
Address changedAddress
}
}
Aggregate Acounts {
Entity UserAccount {
aggregateRoot
String username
Customer accountCustomer
}
}
}
/* Domain & Subdomain Definitions */
Domain InsuranceDomain {
Subdomain CustomerManagementDomain {
type = CORE_DOMAIN
domainVisionStatement = "Subdomain managing everything customer-related."
}
}