Skip to content

Commit f501565

Browse files
committed
Fix link on aggregate page and change order of samples
1 parent 67b0748 commit f501565

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

_docs/language-reference/aggregate.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,15 @@ A _write_ operation may changes the state of the Aggregate. Such state transitio
8888
}
8989
</pre></div>
9090

91-
These language features allow you to define the lifecycle of an Aggregate. The following examples show all possible variants of state transitions:
91+
With our [PlantUML generator](/docs/plant-uml/) you can visualize the lifecycle of your Aggregates with state diagrams. For example, the model at the top of this page generates the following state diagram:
92+
93+
![Sample State Diagram](/img/LangRef-Aggregate_Sample-StateDiagram.png)
94+
95+
**Note:** If you use the _target state_ markers (*) as documented above, we also use this information in our [PlantUML Generator](/docs/plant-uml/) and generate the corresponding end states:
96+
97+
![Sample State Diagram](/img/LangRef-Aggregate_Sample-StateDiagram_with-end-States.png)
98+
99+
These language features allow you to define the lifecycle of an Aggregate. The following example show all possible variants of state transitions (note that the following example is not in line with the example above; it just shows all variants of possible state transitions):
92100

93101
<div class="highlight"><pre><span></span><span class="c">// an initial state:</span>
94102
-<span class="k">&gt;</span> CREATED
@@ -111,15 +119,7 @@ CHECK_IN_PROGRESS -&gt; ACCEPTED* <span class="k">X</span> REJECTED*
111119
CREATED, CHECK_REQUESTED -&gt; ACCEPTED <span class="k">X</span> REJECTED
112120
</pre></div>
113121

114-
_Hint:_ You can also model the state transition inside your [event flows in the application layer]().
115-
116-
With our [PlantUML generator](/docs/plant-uml/) you can visualize the lifecycle of your Aggregates with state diagrams. For example, the model at the top of this page generates the following state diagram:
117-
118-
![Sample State Diagram](/img/LangRef-Aggregate_Sample-StateDiagram.png)
119-
120-
**Note:** If you use the _target state_ markers (*) as documented above, we also use this information in our [PlantUML Generator](/docs/plant-uml/) and generate the corresponding end states:
121-
122-
![Sample State Diagram](/img/LangRef-Aggregate_Sample-StateDiagram_with-end-States.png)
122+
_Hint:_ You can also model the state transition inside your [event flows in the application layer](/docs/application-and-process-layer/#processes-and-eventcommand-flows).
123123

124124
## Aggregate Owner
125125
CML allows specifying an owner on the aggregate level. If aggregates are maintained by different teams, you can specify this as in the

0 commit comments

Comments
 (0)