-
-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provide Freemarker template to generate CSV with value clusters and v…
…alues
- Loading branch information
Showing
1 changed file
with
71 additions
and
0 deletions.
There are no files selected for viewing
71 changes: 71 additions & 0 deletions
71
org.contextmapper.dsl.ui/samples/freemarker/csv-files/value-registers.csv.ftl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
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 | ||
<#list valueRegisters as valueRegister> | ||
<#if valueRegister.context?has_content><#assign valueRegisterContext = valueRegister.context.name!""><#else><#assign valueRegisterContext = ""></#if> | ||
<#list valueRegister.valueClusters as valueCluster> | ||
<#if valueCluster.coreValue7000?has_content><#assign valueClusterCoreValue = valueCluster.coreValue7000!""><#else><#assign valueClusterCoreValue = valueCluster.coreValue!""></#if> | ||
<#if valueCluster.demonstrators?has_content><#assign valueClusterDemonstrators = valueCluster.demonstrators?join("; ")><#else><#assign valueClusterDemonstrators = ""></#if> | ||
<#if valueCluster.relatedValues?has_content><#assign valueClusterRelatedValues = valueCluster.relatedValues?join("; ")><#else><#assign valueClusterRelatedValues = ""></#if> | ||
<#if valueCluster.opposingValues?has_content><#assign valueClusterOpposingValues = valueCluster.opposingValues?join("; ")><#else><#assign valueClusterOpposingValues = ""></#if> | ||
<#if valueCluster.elicitations?has_content> | ||
<#list valueCluster.elicitations as stakeholderElicitation> | ||
<#if stakeholderElicitation.consequences?has_content> | ||
<#list stakeholderElicitation.consequences as consequence> | ||
<#if consequence.action?has_content> | ||
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},,,,,,${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},${consequence.action.type!""},${consequence.action.action!""} | ||
<#else> | ||
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},,,,,,${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},, | ||
</#if> | ||
</#list> | ||
<#else> | ||
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},,,,,,${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},,,, | ||
</#if> | ||
</#list> | ||
<#else> | ||
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},,,,,,,,,,,,, | ||
</#if> | ||
<#list valueCluster.values as value> | ||
<#if value.demonstrators?has_content><#assign valueDemonstrators = value.demonstrators?join("; ")><#else><#assign valueDemonstrators = ""></#if> | ||
<#if value.relatedValues?has_content><#assign valueRelatedValues = value.relatedValues?join("; ")><#else><#assign valueRelatedValues = ""></#if> | ||
<#if value.opposingValues?has_content><#assign valueOpposingValues = value.opposingValues?join("; ")><#else><#assign valueOpposingValues = ""></#if> | ||
<#if value.elicitations?has_content> | ||
<#list value.elicitations as stakeholderElicitation> | ||
<#if stakeholderElicitation.consequences?has_content> | ||
<#list stakeholderElicitation.consequences as consequence> | ||
<#if consequence.action?has_content> | ||
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.isCore!""!""},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},${consequence.action.type!""},${consequence.action.action!""} | ||
<#else> | ||
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.isCore!""},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},, | ||
</#if> | ||
</#list> | ||
<#else> | ||
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.isCore!""},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},,,, | ||
</#if> | ||
</#list> | ||
<#else> | ||
${valueRegister.name},${valueRegisterContext},${valueCluster.name},${valueClusterCoreValue},${valueClusterDemonstrators},${valueClusterRelatedValues},${valueClusterOpposingValues},${value.name},${value.isCore!""},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},,,,,,,, | ||
</#if> | ||
</#list> | ||
</#list> | ||
<#list valueRegister.values as value> | ||
<#if value.demonstrators?has_content><#assign valueDemonstrators = value.demonstrators?join("; ")><#else><#assign valueDemonstrators = ""></#if> | ||
<#if value.relatedValues?has_content><#assign valueRelatedValues = value.relatedValues?join("; ")><#else><#assign valueRelatedValues = ""></#if> | ||
<#if value.opposingValues?has_content><#assign valueOpposingValues = value.opposingValues?join("; ")><#else><#assign valueOpposingValues = ""></#if> | ||
<#if value.elicitations?has_content> | ||
<#list value.elicitations as stakeholderElicitation> | ||
<#if stakeholderElicitation.consequences?has_content> | ||
<#list stakeholderElicitation.consequences as consequence> | ||
<#if consequence.action?has_content> | ||
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.isCore!""},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},${consequence.action.type!""},${consequence.action.action!""} | ||
<#else> | ||
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.isCore!""},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},${consequence.type!""},${consequence.consequence},, | ||
</#if> | ||
</#list> | ||
<#else> | ||
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.isCore!""},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},${stakeholderElicitation.stakeholder.name},${stakeholderElicitation.priority!""},${stakeholderElicitation.impact!""},,,, | ||
</#if> | ||
</#list> | ||
<#else> | ||
${valueRegister.name},${valueRegisterContext},,,,,,${value.name},${value.isCore!""},${valueDemonstrators},${valueRelatedValues},${valueOpposingValues},,,,,,,, | ||
</#if> | ||
</#list> | ||
</#list> |