Skip to content

Commit 140e6dc

Browse files
authored
Stakeholder & Values Modelling (#355)
1 parent 9129c0f commit 140e6dc

18 files changed

+1814
-66
lines changed

.github/workflows/build_master.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ jobs:
3535
- name: Build with Gradle
3636
run: ./gradlew clean build
3737
- name: Upload coverage to Codecov
38-
uses: codecov/codecov-action@v1
38+
uses: codecov/codecov-action@v4
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}
3941

4042
build_eclipse:
4143
name: Build Eclipse Plugin

.github/workflows/build_standard.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ jobs:
3333
- name: Build with Gradle
3434
run: ./gradlew clean build
3535
- name: Upload coverage to Codecov
36-
uses: codecov/codecov-action@v1
36+
uses: codecov/codecov-action@v4
37+
with:
38+
token: ${{ secrets.CODECOV_TOKEN }}
3739

3840
build_eclipse:
3941
name: Build Eclipse Plugin

.github/workflows/release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,9 @@ jobs:
3232
- name: Build with Gradle
3333
run: ./gradlew clean build
3434
- name: Upload coverage to Codecov
35-
uses: codecov/codecov-action@v1
35+
uses: codecov/codecov-action@v4
36+
with:
37+
token: ${{ secrets.CODECOV_TOKEN }}
3638

3739
build_eclipse:
3840
name: Build Eclipse Plugin
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Stakeholders {
2+
3+
Stakeholder Tester
4+
5+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
BoundedContext SameDayDelivery
2+
3+
Stakeholders of SameDayDelivery {
4+
StakeholderGroup Online_Shopping_Company {
5+
Stakeholder Development_Team {
6+
influence MEDIUM
7+
interest HIGH
8+
}
9+
Stakeholder Product_Management {
10+
influence HIGH
11+
interest HIGH
12+
}
13+
Stakeholder Customer_Relationship_Manager {
14+
influence HIGH
15+
interest MEDIUM
16+
}
17+
}
18+
19+
StakeholderGroup Product_Suppliers {
20+
Stakeholder Managers
21+
Stakeholder Logistics_Warehouse_Staff_of_Suppliers
22+
Stakeholder Delivery_Staff_of_Suppliers
23+
}
24+
25+
StakeholderGroup Delivery_Partners {
26+
Stakeholder Route_Planners
27+
Stakeholder Drivers
28+
}
29+
30+
StakeholderGroup Competing_Companies
31+
32+
StakeholderGroup Logistics_Team {
33+
Stakeholder Logistics_Manager
34+
Stakeholder Warehouse_Staff
35+
}
36+
37+
38+
Stakeholder Government
39+
40+
StakeholderGroup Customers_and_Shoppers {
41+
Stakeholder Shoppers_in_Emergency_Situations
42+
Stakeholder Others
43+
}
44+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
BoundedContext SameDayDelivery
2+
BoundedContext Context2
3+
4+
Stakeholders of SameDayDelivery, Context2 {
5+
StakeholderGroup Online_Shopping_Company {
6+
Stakeholder Development_Team {
7+
influence MEDIUM
8+
interest HIGH
9+
}
10+
Stakeholder Product_Management {
11+
influence HIGH
12+
interest HIGH
13+
}
14+
Stakeholder Customer_Relationship_Manager {
15+
influence HIGH
16+
interest MEDIUM
17+
}
18+
}
19+
20+
StakeholderGroup Product_Suppliers {
21+
Stakeholder Managers
22+
Stakeholder Logistics_Warehouse_Staff_of_Suppliers
23+
Stakeholder Delivery_Staff_of_Suppliers
24+
}
25+
26+
StakeholderGroup Delivery_Partners {
27+
Stakeholder Route_Planners
28+
Stakeholder Drivers
29+
}
30+
31+
StakeholderGroup Competing_Companies
32+
33+
StakeholderGroup Logistics_Team {
34+
Stakeholder Logistics_Manager
35+
Stakeholder Warehouse_Staff
36+
}
37+
38+
39+
Stakeholder Government
40+
41+
StakeholderGroup Customers_and_Shoppers {
42+
Stakeholder Shoppers_in_Emergency_Situations
43+
Stakeholder Others
44+
}
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
2+
Stakeholders {
3+
StakeholderGroup Online_Shopping_Company {
4+
Stakeholder Development_Team {
5+
influence MEDIUM
6+
interest HIGH
7+
}
8+
Stakeholder Product_Management {
9+
influence HIGH
10+
interest HIGH
11+
}
12+
Stakeholder Customer_Relationship_Manager {
13+
influence HIGH
14+
interest MEDIUM
15+
}
16+
}
17+
18+
StakeholderGroup Product_Suppliers {
19+
Stakeholder Managers
20+
Stakeholder Logistics_Warehouse_Staff_of_Suppliers
21+
Stakeholder Delivery_Staff_of_Suppliers
22+
}
23+
24+
StakeholderGroup Delivery_Partners {
25+
Stakeholder Route_Planners
26+
Stakeholder Drivers
27+
}
28+
29+
StakeholderGroup Competing_Companies
30+
31+
StakeholderGroup Logistics_Team {
32+
Stakeholder Logistics_Manager
33+
Stakeholder Warehouse_Staff
34+
}
35+
36+
37+
Stakeholder Government
38+
39+
StakeholderGroup Customers_and_Shoppers {
40+
Stakeholder Shoppers_in_Emergency_Situations
41+
Stakeholder Others
42+
}
43+
}

org.contextmapper.dsl.tests/integ-test-files/refactorings/derive-bc-from-subdomain-test-11-input.cml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Domain Insurance_Application {
33
Entity Claim {
44
Date date
55
Double amountClaimed
6-
String description
6+
String desc
77
- Agent agent
88
}
99
Entity Policy {
@@ -43,7 +43,7 @@ Domain Insurance_Application {
4343
UseCase Get_paid_for_car_accident { // title
4444
actor "Claimant" // primary actor
4545
interactions
46-
"submit" a "Claim" with its "date", "amountClaimed", "description" for a "Policy", // step 1: claimant submits claim
46+
"submit" a "Claim" with its "date", "amountClaimed", "desc" for a "Policy", // step 1: claimant submits claim
4747
"verifyExistanceOf" "Policy" with its "startDate", "endDate" for a "Contract", // step 2: insurance company verifies that valid policy exists
4848
"assign" an "Agent" with its "personalID", "firstName", "lastName" for "Claim", // step 3: agent is assigned to claim
4949
"verify" "Policy" for a "Contract", // step 4: agent verifies all details are within policy guidelines

org.contextmapper.dsl.tests/integ-test-files/refactorings/derive-bc-from-subdomain-test-11-output.cml

+3-3
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 desc
2929
String claimId key
3030
- Agent agent
3131
}
@@ -59,7 +59,7 @@ Domain Insurance_Application {
5959
Entity Claim {
6060
Date date
6161
Double amountClaimed
62-
String description
62+
String desc
6363
- Agent agent
6464
}
6565
Entity Policy {
@@ -100,7 +100,7 @@ Domain Insurance_Application {
100100
UseCase Get_paid_for_car_accident { // title
101101
actor "Claimant" // primary actor
102102
interactions
103-
"submit" a "Claim" with its "date", "amountClaimed", "description" for a "Policy", // step 1: claimant submits claim
103+
"submit" a "Claim" with its "date", "amountClaimed", "desc" for a "Policy", // step 1: claimant submits claim
104104
"verifyExistanceOf" "Policy" with its "startDate", "endDate" for a "Contract", // step 2: insurance company verifies that valid policy exists
105105
"assign" an "Agent" with its "personalID", "firstName", "lastName" for "Claim", // step 3: agent is assigned to claim
106106
"verify" "Policy" for a "Contract", // step 4: agent verifies all details are within policy guidelines

org.contextmapper.dsl.tests/src/org/contextmapper/dsl/DomainDSLParsingTest.xtend

+17-17
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class DomainDSLParsingTest {
6464
BoundedContext testContext
6565
6666
Domain Insurance {
67-
Subdomain core
67+
Subdomain CoreDomain
6868
Subdomain support1
6969
Subdomain generic
7070
}
@@ -79,7 +79,7 @@ class DomainDSLParsingTest {
7979
assertEquals(3, domain.subdomains.size);
8080

8181
val subdomainNames = domain.subdomains.stream.map[name].collect(Collectors.toList);
82-
assertTrue(subdomainNames.contains("core"));
82+
assertTrue(subdomainNames.contains("CoreDomain"));
8383
assertTrue(subdomainNames.contains("support1"));
8484
assertTrue(subdomainNames.contains("generic"));
8585
}
@@ -88,10 +88,10 @@ class DomainDSLParsingTest {
8888
def void canMapSubdomainToBoundedContexts() {
8989
// given
9090
val String dslSnippet = '''
91-
BoundedContext testContext implements core
91+
BoundedContext testContext implements CoreDomain
9292
9393
Domain Insurance {
94-
Subdomain core {
94+
Subdomain CoreDomain {
9595
type = CORE_DOMAIN
9696
}
9797
Subdomain support1 {
@@ -108,17 +108,17 @@ class DomainDSLParsingTest {
108108
assertThatNoParsingErrorsOccurred(result);
109109
assertThatNoValidationErrorsOccurred(result);
110110
assertEquals(1, result.boundedContexts.get(0).implementedDomainParts.size);
111-
assertEquals("core", result.boundedContexts.get(0).implementedDomainParts.get(0).name);
111+
assertEquals("CoreDomain", result.boundedContexts.get(0).implementedDomainParts.get(0).name);
112112
}
113113

114114
@Test
115115
def void canMapSubdomainsToBoundedContexts() {
116116
// given
117117
val String dslSnippet = '''
118-
BoundedContext testContext implements core, support1
118+
BoundedContext testContext implements CoreDomain, support1
119119
120120
Domain Insurance {
121-
Subdomain core {
121+
Subdomain CoreDomain {
122122
type = CORE_DOMAIN
123123
}
124124
Subdomain support1 {
@@ -137,7 +137,7 @@ class DomainDSLParsingTest {
137137
assertEquals(2, result.boundedContexts.get(0).implementedDomainParts.size);
138138

139139
val subdomainNames = result.boundedContexts.get(0).implementedDomainParts.stream.map[name].collect(Collectors.toList);
140-
assertTrue(subdomainNames.contains("core"));
140+
assertTrue(subdomainNames.contains("CoreDomain"));
141141
assertTrue(subdomainNames.contains("support1"));
142142
}
143143

@@ -162,7 +162,7 @@ class DomainDSLParsingTest {
162162
// given
163163
val String dslSnippet = '''
164164
Domain Insurance {
165-
Subdomain core {
165+
Subdomain CoreDomain {
166166
type = CORE_DOMAIN
167167
domainVisionStatement = "my domain vision for this subdomain"
168168
}
@@ -183,7 +183,7 @@ class DomainDSLParsingTest {
183183
BoundedContext testContext implements Insurance
184184
185185
Domain Insurance {
186-
Subdomain core {
186+
Subdomain CoreDomain {
187187
type = CORE_DOMAIN
188188
}
189189
}
@@ -200,10 +200,10 @@ class DomainDSLParsingTest {
200200
def void cannotImplementSubdomainAlreadyImplementedByDomain() {
201201
// given
202202
val String dslSnippet = '''
203-
BoundedContext testContext implements Insurance, core
203+
BoundedContext testContext implements Insurance, CoreDomain
204204
205205
Domain Insurance {
206-
Subdomain core {
206+
Subdomain CoreDomain {
207207
type = CORE_DOMAIN
208208
}
209209
}
@@ -213,7 +213,7 @@ class DomainDSLParsingTest {
213213
// then
214214
assertThatNoParsingErrorsOccurred(result);
215215
validationTestHelper.assertError(result, ContextMappingDSLPackage.Literals.BOUNDED_CONTEXT, "",
216-
String.format(ALREADY_IMPLEMENTED_SUBDOMAIN, "core", "Insurance"));
216+
String.format(ALREADY_IMPLEMENTED_SUBDOMAIN, "CoreDomain", "Insurance"));
217217
}
218218

219219
@Test
@@ -223,7 +223,7 @@ class DomainDSLParsingTest {
223223
BoundedContext testContext implements Insurance, Banking
224224
225225
Domain Insurance {
226-
Subdomain core {
226+
Subdomain CoreDomain {
227227
type = CORE_DOMAIN
228228
}
229229
}
@@ -241,7 +241,7 @@ class DomainDSLParsingTest {
241241
// given
242242
val String dslSnippet = '''
243243
Domain Insurance {
244-
Subdomain core {
244+
Subdomain CoreDomain {
245245
type = CORE_DOMAIN
246246
domainVisionStatement = "my domain vision for this subdomain"
247247
@@ -267,7 +267,7 @@ class DomainDSLParsingTest {
267267
// given
268268
val String dslSnippet = '''
269269
Domain Insurance {
270-
Subdomain core {
270+
Subdomain CoreDomain {
271271
type = CORE_DOMAIN
272272
domainVisionStatement = "my domain vision for this subdomain"
273273
@@ -289,7 +289,7 @@ class DomainDSLParsingTest {
289289
// given
290290
val String dslSnippet = '''
291291
Domain Insurance {
292-
Subdomain core {
292+
Subdomain CoreDomain {
293293
type CORE_DOMAIN
294294
domainVisionStatement "my domain vision for this subdomain"
295295
}

0 commit comments

Comments
 (0)