|
3 | 3 |
|
4 | 4 | Using the Workflow component inside a Symfony application requires to know first
|
5 | 5 | some basic theory and concepts about workflows and state machines.
|
6 |
| -:doc:`Read this article </workflow/introduction>` for a quick overview. |
| 6 | +:doc:`Read this article </workflow/workflow-and-state-machine>` for a quick overview. |
7 | 7 |
|
8 | 8 | A workflow is a process or a lifecycle that your objects go through. Each
|
9 | 9 | step or stage in the process is called a *place*. You do also define *transitions*
|
@@ -158,13 +158,20 @@ As configured, the following property is used by the marking store::
|
158 | 158 |
|
159 | 159 | The marking store type could be "multiple_state" or "single_state". A single
|
160 | 160 | state marking store does not support a model being on multiple places at the
|
161 |
| - same time. |
| 161 | + same time. This means a "workflow" must use a "multiple_state" marking store |
| 162 | + and a "state_machine" must use a "single_state" marking store. Symfony |
| 163 | + configures the marking store according to the "type" by default, so it's |
| 164 | + preferable to not configure it. |
| 165 | + |
| 166 | + A single state marking store use a string to store the data. A multiple |
| 167 | + state marking store use an array to store the data. |
162 | 168 |
|
163 | 169 | .. tip::
|
164 | 170 |
|
165 |
| - The ``type`` (default value ``single_state``) and ``arguments`` (default |
166 |
| - value ``marking``) attributes of the ``marking_store`` option are optional. |
167 |
| - If omitted, their default values will be used. |
| 171 | + The ``marking_store.type`` (the default value depends on the ``type`` value) |
| 172 | + and ``arguments`` (default value ``['marking']``) attributes of the |
| 173 | + ``marking_store`` option are optional. If omitted, their default values will |
| 174 | + be used. It's highly recommenced to use the default value. |
168 | 175 |
|
169 | 176 | .. tip::
|
170 | 177 |
|
@@ -493,5 +500,5 @@ Learn more
|
493 | 500 | .. toctree::
|
494 | 501 | :maxdepth: 1
|
495 | 502 |
|
496 |
| - workflow/introduction |
497 |
| - workflow/dumping-workflows |
| 503 | + /workflow/workflow-and-state-machine |
| 504 | + /workflow/dumping-workflows |
0 commit comments