|
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 | Installation
|
9 | 9 | ------------
|
@@ -170,6 +170,25 @@ As configured, the following property is used by the marking store::
|
170 | 170 | public $content;
|
171 | 171 | }
|
172 | 172 |
|
| 173 | +.. note:: |
| 174 | + |
| 175 | + The marking store type could be "multiple_state" or "single_state". A single |
| 176 | + state marking store does not support a model being on multiple places at the |
| 177 | + same time. This means a "workflow" must use a "multiple_state" marking store |
| 178 | + and a "state_machine" must use a "single_state" marking store. Symfony |
| 179 | + configures the marking store according to the "type" by default, so it's |
| 180 | + preferable to not configure it. |
| 181 | + |
| 182 | + A single state marking store uses a string to store the data. A multiple |
| 183 | + state marking store uses an array to store the data. |
| 184 | + |
| 185 | +.. tip:: |
| 186 | + |
| 187 | + The ``marking_store.type`` (the default value depends on the ``type`` value) |
| 188 | + and ``arguments`` (default value ``['marking']``) attributes of the |
| 189 | + ``marking_store`` option are optional. If omitted, their default values will |
| 190 | + be used. It's highly recommenced to use the default value. |
| 191 | + |
173 | 192 | .. tip::
|
174 | 193 |
|
175 | 194 | Setting the ``audit_trail.enabled`` option to ``true`` makes the application
|
@@ -744,5 +763,5 @@ Learn more
|
744 | 763 | .. toctree::
|
745 | 764 | :maxdepth: 1
|
746 | 765 |
|
747 |
| - workflow/introduction |
748 |
| - workflow/dumping-workflows |
| 766 | + /workflow/workflow-and-state-machine |
| 767 | + /workflow/dumping-workflows |
0 commit comments