File tree Expand file tree Collapse file tree 2 files changed +54
-0
lines changed
src/main/cml/service-coordination-example Expand file tree Collapse file tree 2 files changed +54
-0
lines changed Original file line number Diff line number Diff line change 39
39
40
40
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
41
41
hs_err_pid *
42
+
43
+ # MacOS
44
+ .DS_Store
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Example coordination of services between three Bounded Contexts.
3
+ *
4
+ */
5
+ ContextMap {
6
+ contains ClaimsManagement
7
+ contains InsuranceManagement
8
+ contains PaymentManagement
9
+
10
+ ClaimsManagement <-> InsuranceManagement
11
+
12
+ ClaimsManagement <-> PaymentManagement
13
+ }
14
+
15
+ BoundedContext ClaimsManagement {
16
+ Application {
17
+
18
+ Coordination SubmitValidClaimCoordination {
19
+ ClaimsManagement::ClaimsApplicationService::submitClaim;
20
+ InsuranceManagement::InsuranceApplicationService::checkInsurance;
21
+ ClaimsManagement::ClaimsApplicationService::acceptClaim;
22
+ PaymentManagement::PaymentApplicationService::performPayment;
23
+ }
24
+
25
+ Service ClaimsApplicationService {
26
+ void submitClaim(@Claim claim);
27
+ void acceptClaim(@Claim claim);
28
+ }
29
+ }
30
+
31
+ Aggregate Claims {
32
+ Entity Claim
33
+ }
34
+ }
35
+
36
+ BoundedContext InsuranceManagement {
37
+ Application {
38
+ Service InsuranceApplicationService {
39
+ void checkInsurance(@Claim claim);
40
+ }
41
+ }
42
+ }
43
+
44
+ BoundedContext PaymentManagement {
45
+ Application {
46
+ Service PaymentApplicationService {
47
+ void performPayment(@Claim claim);
48
+ }
49
+ }
50
+ }
51
+
You can’t perform that action at this time.
0 commit comments