@@ -90,35 +90,28 @@ like this:
90
90
<framework : config >
91
91
<framework : workflow name =" blog_publishing" type =" workflow" >
92
92
<framework : audit-trail enabled =" true" />
93
-
94
93
<framework : marking-store type =" single_state" >
95
94
<framework : argument >currentPlace</framework : argument >
96
95
</framework : marking-store >
97
-
98
96
<framework : support >App\Entity\BlogPost</framework : support >
99
-
97
+ < framework : initial_marking >draft</ framework : initial_marking >
100
98
<framework : place >draft</framework : place >
101
99
<framework : place >reviewed</framework : place >
102
100
<framework : place >rejected</framework : place >
103
101
<framework : place >published</framework : place >
104
-
105
102
<framework : transition name =" to_review" >
106
103
<framework : from >draft</framework : from >
107
104
<framework : to >reviewed</framework : to >
108
105
</framework : transition >
109
-
110
106
<framework : transition name =" publish" >
111
107
<framework : from >reviewed</framework : from >
112
108
<framework : to >published</framework : to >
113
109
</framework : transition >
114
-
115
110
<framework : transition name =" reject" >
116
111
<framework : from >reviewed</framework : from >
117
112
<framework : to >rejected</framework : to >
118
113
</framework : transition >
119
-
120
114
</framework : workflow >
121
-
122
115
</framework : config >
123
116
</container >
124
117
@@ -138,6 +131,7 @@ like this:
138
131
'property' => ['currentPlace']
139
132
],
140
133
'supports' => ['App\Entity\BlogPost'],
134
+ 'initial_marking' => 'draft',
141
135
'places' => [
142
136
'draft',
143
137
'reviewed',
@@ -618,8 +612,8 @@ requires:
618
612
<framework : from >reviewed</framework : from >
619
613
<framework : to >published</framework : to >
620
614
<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 >
623
617
</framework : metadata >
624
618
</framework : transition >
625
619
</framework : workflow >
0 commit comments