|
| 1 | + |
1 | 2 | <#list filterStructuralBoundedContexts(boundedContexts) as bc> |
2 | 3 | ## Bounded Context ${bc.name}<#lt> |
3 | 4 |
|
4 | 5 | *${bc.name}* has this domain vision statement: ${bc.domainVisionStatement!"[domain vision of the context not defined]"}<#lt> |
5 | 6 |
|
6 | 7 | <#list bc.aggregates as agg> |
7 | 8 | ### Aggregate ${agg.name}<#lt> |
8 | | - This aggregate can be classified as ${agg.doc!"[no doc string]"}. Its responsibilities are:<#lt> |
9 | | - |
10 | | - <#if agg?has_content> |
| 9 | + This aggregate can be classified as ${agg.doc!"[n/a]"}. <#if agg.responsibilities?has_content>Its responsibilities are:<#lt> |
11 | 10 | <#list agg.responsibilities as r> |
12 | 11 | * ${r}<#lt> |
13 | 12 | </#list> |
14 | 13 | <#else> |
15 | | - * [no (more) responsibilities defined]<#lt> |
| 14 | + <#-- * [no (more) responsibilities defined]<#lt> --> |
16 | 15 | </#if> |
17 | 16 |
|
18 | 17 | <#assign entities = agg.domainObjects?filter(do -> instanceOf(do, Entity))> |
19 | 18 | <#if entities?has_content> |
| 19 | + |
20 | 20 | #### Entities (in Aggregate)<#lt> |
21 | 21 | <#list entities as dob> |
22 | 22 | ##### ${dob.name}<#lt> |
23 | | - ${dob.hint!"[hint missing]"}<#lt> |
| 23 | + ${dob.hint!"[no hint]"}<#lt> |
24 | 24 |
|
25 | 25 | <@attrOpsMacro.renderDomainObjectOperationsAndAttributes dob /> |
| 26 | + |
26 | 27 | </#list> |
27 | 28 | </#if> |
28 | 29 |
|
29 | 30 | <#if agg.services?has_content> |
30 | 31 | #### Services<#lt> |
31 | 32 | <#list agg.services as s> |
32 | 33 | ##### ${s.name}<#lt> |
33 | | - ${s.hint!"[hint missing]"}<#lt> |
34 | | - </#list> |
| 34 | + ${s.hint!"[no hint]"}<#lt> |
| 35 | + |
| 36 | + <#-- move to macro? --> |
| 37 | + <#if s.operations?has_content> |
| 38 | + Operations:<#lt> |
| 39 | + | Operation | Doc String | Parameters | Return Type | State Transition |<#lt> |
| 40 | + |-|-|-|-|-|<#lt> |
| 41 | + <#list s.operations as op> |
| 42 | + | ${op.name} | ${op.doc!"*n/a*"} | <#if op.parameters?has_content><#list op.parameters as p> ${p.name} of type ${getType(p.parameterType)} </#list> <#else> none </#if> | <#if op.returnType?has_content>${getType(op.returnType)}<#else>none</#if> | <#if op.stateTransition?has_content>: [<@stateTransitionMacro.renderStateTransition op.stateTransition />]</#if> |<#lt> |
| 43 | + </#list> |
| 44 | + </#if> |
| 45 | + </#list> |
| 46 | + |
35 | 47 | </#if> |
36 | 48 |
|
37 | 49 | <#assign valueObjects = agg.domainObjects?filter(do -> instanceOf(do, ValueObject))> |
38 | 50 | <#if valueObjects?has_content> |
39 | 51 | #### Value Objects<#lt> |
40 | 52 | <#list valueObjects as dob> |
41 | 53 | ##### ${dob.name}<#lt> |
42 | | - ${dob.hint!"[hint missing]"}<#lt> |
| 54 | + ${dob.hint!"[no hint]"}<#lt> |
43 | 55 |
|
44 | 56 | <@attrOpsMacro.renderDomainObjectOperationsAndAttributes dob /> |
| 57 | + |
45 | 58 | </#list> |
46 | 59 | </#if> |
47 | 60 |
|
|
50 | 63 | #### Enumerations (Enums)<#lt> |
51 | 64 | <#list enums as dob> |
52 | 65 | ##### ${dob.name}<#lt> |
53 | | - ${dob.hint!"[hint missing]"}<#lt> |
| 66 | + ${dob.hint!"[no hint]"}<#lt> |
54 | 67 |
|
55 | 68 | Values:<#lt> |
56 | 69 | <#list dob.values as value> |
|
68 | 81 | <#elseif instanceOf(dob, CommandEvent)> |
69 | 82 | ##### ${dob.name} (CommandEvent)<#lt> |
70 | 83 | </#if> |
71 | | - ${dob.hint!"[hint missing]"}<#lt> |
| 84 | + ${dob.hint!"[no hint]"}<#lt> |
72 | 85 |
|
73 | 86 | <@attrOpsMacro.renderDomainObjectOperationsAndAttributes dob /> |
74 | 87 | </#list> |
|
82 | 95 | Services:<#lt> |
83 | 96 |
|
84 | 97 | <#list bc.application.services as s> |
85 | | - * ${s.name}<#lt>. ${s.hint!"[hint missing]"}<#lt> |
| 98 | + * ${s.name}<#lt>. ${s.hint!"[no hint]"}<#lt> |
86 | 99 | </#list> |
87 | 100 | </#if> |
88 | 101 |
|
89 | 102 | <#if bc.application.events?has_content> |
90 | 103 | Events:<#lt> |
91 | 104 | <#list bc.application.events as event> |
92 | | - * ${event.name}. ${event.hint!"[hint missing]"}<#lt> |
| 105 | + * ${event.name}. ${event.hint!"[no hint]"}<#lt> |
93 | 106 | </#list> |
94 | 107 | </#if> |
95 | 108 |
|
96 | 109 | <#if bc.application.commands?has_content> |
97 | 110 | Commands:<#lt> |
98 | 111 | <#list bc.application.commands as command> |
99 | | - * ${command.name}. ${command.hint!"[hint missing]"}<#lt> |
| 112 | + * ${command.name}. ${command.hint!"[no hint]"}<#lt> |
100 | 113 | </#list> |
101 | 114 | </#if> |
102 | 115 |
|
|
0 commit comments