Skip to content

Commit ab551e5

Browse files
committed
VIM generator adjustment: yellow color for neutral impact
1 parent 410d343 commit ab551e5

File tree

4 files changed

+30
-12
lines changed

4 files changed

+30
-12
lines changed

org.contextmapper.dsl.tests/src/org/contextmapper/dsl/generators/plantuml/PlantUMLValueImpactMapDiagramCreatorTest.java

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ public void canCreateValueImpactMapDiagramDiagramWithoutBoundedContext() throws
5252
+ " .green {" + System.lineSeparator()
5353
+ " BackgroundColor lightgreen" + System.lineSeparator()
5454
+ " }" + System.lineSeparator()
55+
+ " .yellow {" + System.lineSeparator()
56+
+ " BackgroundColor gold" + System.lineSeparator()
57+
+ " }" + System.lineSeparator()
5558
+ " .red {" + System.lineSeparator()
5659
+ " BackgroundColor tomato" + System.lineSeparator()
5760
+ " }" + System.lineSeparator()
@@ -66,7 +69,7 @@ public void canCreateValueImpactMapDiagramDiagramWithoutBoundedContext() throws
6669
+ "----" + System.lineSeparator()
6770
+ "Priority HIGH" + System.lineSeparator()
6871
+ "Impact HIGH" + System.lineSeparator()
69-
+ ";" + System.lineSeparator()
72+
+ "; <<yellow>>" + System.lineSeparator()
7073
+ "@endmindmap" + System.lineSeparator(), valueImpactMapDiagram);
7174
}
7275

@@ -90,6 +93,9 @@ public void canCreateSimpleValueImpactMapDiagram() throws IOException {
9093
+ " .green {" + System.lineSeparator()
9194
+ " BackgroundColor lightgreen" + System.lineSeparator()
9295
+ " }" + System.lineSeparator()
96+
+ " .yellow {" + System.lineSeparator()
97+
+ " BackgroundColor gold" + System.lineSeparator()
98+
+ " }" + System.lineSeparator()
9399
+ " .red {" + System.lineSeparator()
94100
+ " BackgroundColor tomato" + System.lineSeparator()
95101
+ " }" + System.lineSeparator()
@@ -133,6 +139,9 @@ public void canCreateSimpleValueImpactMapDiagram4ValueCluster() throws IOExcepti
133139
+ " .green {" + System.lineSeparator()
134140
+ " BackgroundColor lightgreen" + System.lineSeparator()
135141
+ " }" + System.lineSeparator()
142+
+ " .yellow {" + System.lineSeparator()
143+
+ " BackgroundColor gold" + System.lineSeparator()
144+
+ " }" + System.lineSeparator()
136145
+ " .red {" + System.lineSeparator()
137146
+ " BackgroundColor tomato" + System.lineSeparator()
138147
+ " }" + System.lineSeparator()
@@ -176,6 +185,9 @@ public void canRespectValuesInValueClusters() throws IOException {
176185
+ " .green {" + System.lineSeparator()
177186
+ " BackgroundColor lightgreen" + System.lineSeparator()
178187
+ " }" + System.lineSeparator()
188+
+ " .yellow {" + System.lineSeparator()
189+
+ " BackgroundColor gold" + System.lineSeparator()
190+
+ " }" + System.lineSeparator()
179191
+ " .red {" + System.lineSeparator()
180192
+ " BackgroundColor tomato" + System.lineSeparator()
181193
+ " }" + System.lineSeparator()
@@ -231,6 +243,9 @@ public void canHandleRecurringStakeholders() throws IOException {
231243
+ " .green {" + System.lineSeparator()
232244
+ " BackgroundColor lightgreen" + System.lineSeparator()
233245
+ " }" + System.lineSeparator()
246+
+ " .yellow {" + System.lineSeparator()
247+
+ " BackgroundColor gold" + System.lineSeparator()
248+
+ " }" + System.lineSeparator()
234249
+ " .red {" + System.lineSeparator()
235250
+ " BackgroundColor tomato" + System.lineSeparator()
236251
+ " }" + System.lineSeparator()

org.contextmapper.dsl.ui/samples/freemarker/csv-files/value-registers.csv.ftl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Value Register,Context,Value Cluster,Core Value,Demonstrators,Related Values,Opposing Values,Value,isCore,Demonstrators,Related Values,Opposing Values,Stakeholder(s),Priority,Impact,Consequence Type,Consequence,Action Type, Action
1+
Value Register,Context,Value Cluster,Core Value,Demonstrators,Related Values,Opposing Values,Value,coreValue,Demonstrators,Related Values,Opposing Values,Stakeholder(s),Priority,Impact,Consequence Type,Consequence,Action Type, Action
22
<#list valueRegisters as valueRegister>
33
<#if valueRegister.context?has_content><#assign valueRegisterContext = valueRegister.context.name!""><#else><#assign valueRegisterContext = ""></#if>
44
<#list valueRegister.valueClusters as valueCluster>
@@ -32,17 +32,17 @@ ${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueCluste
3232
<#if stakeholderElicitation.consequences?has_content>
3333
<#list stakeholderElicitation.consequences as consequence>
3434
<#if consequence.action?has_content>
35-
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.isCore?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},${consequence.action.type!""},${consequence.action.action!""}
35+
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.coreValue?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},${consequence.action.type!""},${consequence.action.action!""}
3636
<#else>
37-
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.isCore?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},,
37+
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.coreValue?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},,
3838
</#if>
3939
</#list>
4040
<#else>
41-
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.isCore?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},,,,
41+
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.coreValue?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},,,,
4242
</#if>
4343
</#list>
4444
<#else>
45-
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.isCore?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},,,,,,,,
45+
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.coreValue?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},,,,,,,,
4646
</#if>
4747
</#list>
4848
</#list>
@@ -55,17 +55,17 @@ ${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueCluste
5555
<#if stakeholderElicitation.consequences?has_content>
5656
<#list stakeholderElicitation.consequences as consequence>
5757
<#if consequence.action?has_content>
58-
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.isCore?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},${consequence.action.type!""},${consequence.action.action!""}
58+
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.coreValue?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},${consequence.action.type!""},${consequence.action.action!""}
5959
<#else>
60-
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.isCore?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},,
60+
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.coreValue?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},,
6161
</#if>
6262
</#list>
6363
<#else>
64-
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.isCore?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},,,,
64+
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.coreValue?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},,,,
6565
</#if>
6666
</#list>
6767
<#else>
68-
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.isCore?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},,,,,,,,
68+
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.coreValue?string("yes", "no")},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},,,,,,,,
6969
</#if>
7070
</#list>
7171
</#list>

org.contextmapper.dsl/src/org/contextmapper/dsl/ContextMappingDSL.xtext

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ ValueCluster:
420420
Value:
421421
'Value' name=ID (OPEN
422422
(
423-
(isCore ?= 'isCore')? &
423+
(coreValue ?= 'isCore')? &
424424
('demonstrator' ('=')? demonstrators += STRING)* &
425425
('relatedValue' ('=')? relatedValues += STRING)* &
426426
('opposingValue' ('=')? opposingValues += STRING)* &

org.contextmapper.dsl/src/org/contextmapper/dsl/generator/plantuml/value_impact_mapping/value-impact-map-puml.ftl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ mindmapDiagram {
99
.green {
1010
BackgroundColor lightgreen
1111
}
12+
.yellow {
13+
BackgroundColor gold
14+
}
1215
.red {
1316
BackgroundColor tomato
1417
}
@@ -47,7 +50,7 @@ Impact ${value.impact}
4750
-- <#if value.consequenceType == "GOOD">Positive Consequences<#elseif value.consequenceType == "BAD">Negative Consequences<#else>Consequences</#if> --
4851
<i>${value.consequence}</i>
4952
</#if>
50-
;<#if value.consequenceType == "GOOD"> <<green>><#elseif value.consequenceType == "BAD"> <<red>></#if>
53+
;<#if value.consequenceType == "GOOD"> <<green>><#elseif value.consequenceType == "BAD"> <<red>><#else> <<yellow>></#if>
5154
<#list value.mitigationActions as mitigationAction>
5255
**** <b>${mitigationAction.actionType}</b>: ${mitigationAction.action}
5356
</#list>

0 commit comments

Comments
 (0)