Skip to content

Commit 8f16cf4

Browse files
authored
CM v6.12 + Same Day Delivery example (#31)
1 parent 1147b43 commit 8f16cf4

File tree

7 files changed

+108
-7
lines changed

7 files changed

+108
-7
lines changed

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# dependency versions
2-
cmlVersion=6.11.0
2+
cmlVersion=6.12.0
33
junitVersion=5.5.2
44
xtendLibVersion=2.19.0

src/main/cml/context-mapper-example/ContextMapper-Example-Stage-4.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ BoundedContext StructuredServiceDecomposition {
179179

180180
ValueObject CriterionPriority {
181181
String criterion
182-
- SolverPriority priority
182+
- SolverPriority ^priority
183183
}
184184

185185
enum SolverPriority {

src/main/cml/lakeside-mutual/LakesideMutual.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ BoundedContext ClaimsManagement implements ClaimsManagement {
7070
aggregateRoot
7171
long claimId
7272
- CustomerId customer
73-
String description
73+
String ^description
7474
Blob requestDocument
7575
boolean isComplete
7676
boolean isAssessed

src/main/cml/ooad-sample-claims/claims-use-case.cml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ BoundedContext ClaimsManagement implements ClaimsManagement {
2525
Entity Claim {
2626
Date date
2727
Double amountClaimed
28-
String description
28+
String ^description
2929
ClaimID claimId
3030
- Agent agent
3131
}
@@ -64,7 +64,7 @@ Domain Insurance_Application {
6464
Entity Claim {
6565
Date date
6666
Double amountClaimed
67-
String description
67+
String ^description
6868
- Agent agent
6969
}
7070
Entity Policy {
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
2+
3+
BoundedContext SameDayDelivery
4+
5+
6+
Stakeholders of SameDayDelivery {
7+
StakeholderGroup Online_Shopping_Company {
8+
Stakeholder Development_Team {
9+
influence MEDIUM
10+
interest HIGH
11+
}
12+
Stakeholder Product_Management {
13+
influence HIGH
14+
interest HIGH
15+
}
16+
Stakeholder Customer_Relationship_Manager {
17+
influence HIGH
18+
interest MEDIUM
19+
}
20+
}
21+
StakeholderGroup Product_Suppliers {
22+
Stakeholder Managers
23+
Stakeholder Logistics_Warehouse_Staff_of_Suppliers
24+
Stakeholder Delivery_Staff_of_Suppliers
25+
}
26+
StakeholderGroup Delivery_Partners {
27+
Stakeholder Route_Planners
28+
Stakeholder Drivers
29+
}
30+
StakeholderGroup Competing_Companies
31+
32+
StakeholderGroup Logistics_Team {
33+
Stakeholder Logistics_Manager
34+
Stakeholder Warehouse_Staff
35+
}
36+
Stakeholder Government
37+
38+
StakeholderGroup Customers_and_Shoppers {
39+
Stakeholder Shoppers_in_Emergency_Situations
40+
Stakeholder Others
41+
}
42+
}
43+
ValueRegister SD_Values for SameDayDelivery {
44+
ValueCluster Autonomy {
45+
core AUTONOMY
46+
demonstrator "customer values potentially increased freedom"
47+
demonstrator "delivery staff's freedom might suffer because of work-life-balance"
48+
Value Freedom {
49+
Stakeholder Customers_and_Shoppers {
50+
priority HIGH
51+
impact MEDIUM
52+
consequences
53+
good "increased freedom"
54+
}
55+
}
56+
Value Quality_of_Life {
57+
Stakeholder Customers_and_Shoppers {
58+
consequences
59+
good "less stress in emergendy situations"
60+
}
61+
}
62+
Value Sustainability {
63+
Stakeholder Customers_and_Shoppers {
64+
priority HIGH
65+
impact LOW
66+
consequences
67+
bad "fostering unsustainable behavior (always ordering last minute)"
68+
action "Limit Availability of Feature" ACT
69+
}
70+
}
71+
Value Ability_to_be_patient {
72+
Stakeholder Customers_and_Shoppers {
73+
priority MEDIUM
74+
impact HIGH
75+
consequences
76+
bad "patience of customer will further increase"
77+
action "Only allow feature for emergency (don't make it the default)" ACT
78+
}
79+
}
80+
}
81+
Value WorkLifeBalance {
82+
isCore
83+
demonstrator "Drivers value a healthy work-life-balance"
84+
Stakeholder Drivers {
85+
priority HIGH
86+
impact HIGH
87+
consequences
88+
bad "SDD will harm work-life-balance of drivers"
89+
action "hire more drivers, adjust availability to workload" ACT
90+
}
91+
}
92+
Value Revenue {
93+
demonstrator "Online shopping company needs revenue"
94+
Stakeholder Online_Shopping_Company {
95+
priority HIGH
96+
impact MEDIUM
97+
consequences
98+
good "increased number of customers"
99+
}
100+
}
101+
}

src/main/cml/workflow-samples/ClaimsManagement_with_Commands.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ BoundedContext ClaimsManagement {
3737
aggregateRoot
3838
long claimId
3939
CustomerId customer
40-
String description
40+
String ^description
4141
Blob requestDocument
4242
boolean isComplete
4343
boolean isAssessed

src/main/cml/workflow-samples/ClaimsManagement_with_ServiceOperations.cml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ BoundedContext ClaimsManagement {
3939
aggregateRoot
4040
long claimId
4141
CustomerId customer
42-
String description
42+
String ^description
4343
Blob requestDocument
4444
boolean isComplete
4545
boolean isAssessed

0 commit comments

Comments
 (0)