Skip to content

Commit

Permalink
Introduce UNDEFINED value for new JEDi enums
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-ka committed Aug 22, 2024
1 parent 50119ca commit 3f2a9ac
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ public void canCreateValueImpactMapDiagramDiagramWithoutBoundedContext() throws
+ "<b>System of Interest (SOI)</b>;" + System.lineSeparator()
+ "** <b>Drivers</b>" + System.lineSeparator()
+ "***:<b>WorkLifeBalance</b>" + System.lineSeparator()
+ "----" + System.lineSeparator()
+ "Priority HIGH" + System.lineSeparator()
+ "Impact HIGH" + System.lineSeparator()
+ "; <<yellow>>" + System.lineSeparator()
+ "@endmindmap" + System.lineSeparator(), valueImpactMapDiagram);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ Context,Stakeholder Group,Stakeholder,description,influence,interest
<#list stakeholders as stakeholderContainer>
<#assign stakeholderGroups = stakeholderContainer.stakeholders?filter(s -> instanceOf(s, StakeholderGroup))>
<#assign singleStakeholders = stakeholderContainer.stakeholders?filter(s -> instanceOf(s, Stakeholder))>
<#if stakeholderContainer.contexts?has_content><#assign contextDescription = stakeholderContainer.contexts?map(c -> c.name)?join("; ")><#else><#assign contextDescription = ""></#if>
<#if stakeholderContainer.contexts?has_content><#assign contextDescription = stakeholderContainer.contexts?map(c -> c.name)?join("; ")><#else><#assign contextDescription = "none"></#if>
<#list stakeholderGroups as sg>
<#list sg.stakeholders as stakeholder>
${contextDescription},${sg.name},${stakeholder.name},${stakeholder.description!""},${stakeholder.influence!""},${stakeholder.interest!""}
</#list>
</#list>
<#list singleStakeholders as stakeholder>
${contextDescription},,${stakeholder.name},${stakeholder.description!""},${stakeholder.influence!""},${stakeholder.interest!""}
${contextDescription},none,${stakeholder.name},${stakeholder.description!""},${stakeholder.influence!""},${stakeholder.interest!""}
</#list>
</#list>
Original file line number Diff line number Diff line change
Expand Up @@ -532,19 +532,19 @@ enum Evolution :
;

enum INFLUENCE :
HIGH | MEDIUM | LOW
UNDEFINED | HIGH | MEDIUM | LOW
;

enum INTEREST :
HIGH | MEDIUM | LOW
UNDEFINED | HIGH | MEDIUM | LOW
;

enum PRIORITY:
HIGH | MEDIUM | LOW
UNDEFINED | HIGH | MEDIUM | LOW
;

enum IMPACT:
HIGH | MEDIUM | LOW
UNDEFINED | HIGH | MEDIUM | LOW
;

enum CoreValue:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,12 @@ ${stakeholder.description};
</#if>
<#list stakeholder.values as value>
***:<b>${value.name}</b>
<#if value.priority?has_content || value.impact?has_content>
<#if (value.priority?has_content && value.priority != "UNDEFINED") || (value.impact?has_content && value.impact != "UNDEFINED")>
----
<#if value.priority?has_content>
<#if value.priority?has_content && value.priority != "UNDEFINED">
Priority ${value.priority}
</#if>
<#if value.impact?has_content>
<#if value.impact?has_content && value.impact != "UNDEFINED">
Impact ${value.impact}
</#if>
</#if>
Expand Down

0 comments on commit 3f2a9ac

Please sign in to comment.