@@ -43,8 +43,9 @@ like this:
43
43
audit_trail :
44
44
enabled : true
45
45
marking_store :
46
- type : ' multiple_state ' # or 'single_state '
46
+ type : ' method '
47
47
arguments :
48
+ - false
48
49
- ' currentPlace'
49
50
supports :
50
51
- App\Entity\BlogPost
@@ -80,7 +81,8 @@ like this:
80
81
<framework : workflow name =" blog_publishing" type =" workflow" >
81
82
<framework : audit-trail enabled =" true" />
82
83
83
- <framework : marking-store type =" single_state" >
84
+ <framework : marking-store type =" method" >
85
+ <framework : argument >false</framework : argument >
84
86
<framework : argument >currentPlace</framework : argument >
85
87
</framework : marking-store >
86
88
@@ -127,8 +129,11 @@ like this:
127
129
'enabled' => true
128
130
],
129
131
'marking_store' => [
130
- 'type' => 'multiple_state', // or 'single_state'
131
- 'arguments' => ['currentPlace'],
132
+ 'type' => 'method',
133
+ 'arguments' => [
134
+ false,
135
+ 'currentPlace',
136
+ ],
132
137
],
133
138
'supports' => ['App\Entity\BlogPost'],
134
139
'places' => [
@@ -167,14 +172,14 @@ As configured, the following property is used by the marking store::
167
172
168
173
.. note ::
169
174
170
- The marking store type could be "multiple_state" or "single_state".
171
- A single state marking store does not support a model being on multiple places
172
- at the same time .
175
+ The Workflow Component supports workflows that can be in one or multiple places
176
+ (states) at the same time. To restrict a workflow to a single state, set the first
177
+ argument to `` true `` when defining the `` marking_store `` .
173
178
174
179
.. tip ::
175
180
176
- The ``type `` (default value ``single_state ``) and ``arguments `` (default
177
- value ``marking ``) attributes of the ``marking_store `` option are optional.
181
+ The ``type `` (default value ``method ``) and ``arguments `` (default
182
+ values `` false `` and ``marking ``) attributes of the ``marking_store `` option are optional.
178
183
If omitted, their default values will be used.
179
184
180
185
.. tip ::
0 commit comments