8000 Review · symfony/symfony-docs@f65f1bc · GitHub
[go: up one dir, main page]

Skip to content

Commit f65f1bc

Browse files
noniagriconomiewouterj
authored andcommitted
Review
1 parent cf3a32c commit f65f1bc

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

workflow.rst

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,35 +90,28 @@ like this:
9090
<framework:config>
9191
<framework:workflow name="blog_publishing" type="workflow">
9292
<framework:audit-trail enabled="true"/>
93-
9493
<framework:marking-store type="single_state">
9594
<framework:argument>currentPlace</framework:argument>
9695
</framework:marking-store>
97-
9896
<framework:support>App\Entity\BlogPost</framework:support>
99-
97+
<framework:initial_marking>draft</framework:initial_marking>
10098
<framework:place>draft</framework:place>
10199
<framework:place>reviewed</framework:place>
102100
<framework:place>rejected</framework:place>
103101
<framework:place>published</framework:place>
104-
105102
<framework:transition name="to_review">
106103
<framework:from>draft</framework:from>
107104
<framework:to>reviewed</framework:to>
108105
</framework:transition>
109-
110106
<framework:transition name="publish">
111107
<framework:from>reviewed</framework:from>
112108
<framework:to>published</framework:to>
113109
</framework:transition>
114-
115110
<framework:transition name="reject">
116111
<framework:from>reviewed</framework:from>
117112
<framework:to>rejected</framework:to>
118113
</framework:transition>
119-
120114
</framework:workflow>
121-
122115
</framework:config>
123116
</container>
124117
@@ -138,6 +131,7 @@ like this:
138131
'property' => ['currentPlace']
139132
],
140133
'supports' => ['App\Entity\BlogPost'],
134+
'initial_marking' => 'draft',
141135
'places' => [
142136
'draft',
143137
'reviewed',
@@ -618,8 +612,8 @@ requires:
618612
<framework:from>reviewed</framework:from>
619613
<framework:to>published</framework:to>
620614
<framework:metadata>
621-
<framework:hour_limit>20</framework:priority>
622-
<framework:explanation>You can not publish after 8 PM.</framework:priority>
615+
<framework:hour_limit>20</framework:hour_limit>
616+
<framework:explanation>You can not publish after 8 PM.</framework:explanation>
623617
</framework:metadata>
624618
</framework:transition>
625619
</framework:workflow>

0 commit comments

Comments
 (0)
0