@@ -180,14 +180,14 @@ Using Events
180
180
To make your workflows more flexible, you can construct the ``Workflow ``
181
181
object with an ``EventDispatcher ``. You can now create event listeners to
182
182
block transitions (i.e. depending on the data in the blog post) and do
183
- additional actions when a workflow operation happened (i.e. sending
183
+ additional actions when a workflow operation happened (e.g. sending
184
184
announcements).
185
185
186
186
Each step has three events that are fired in order:
187
187
188
- - An event for every workflow;
189
- - An event for the workflow concerned;
190
- - An event for the workflow concerned with the specific transition or place name;
188
+ * An event for every workflow;
189
+ * An event for the workflow concerned;
190
+ * An event for the workflow concerned with the specific transition or place name.
191
191
192
192
The following events are dispatched:
193
193
@@ -213,7 +213,7 @@ The following events are dispatched:
213
213
214
214
When a state transition is initiated, the events are fired in the following order:
215
215
216
- - guard: Validate whether the transition is allowed at all (see below);
216
+ - guard: Validate whether the transition is allowed at all (:ref: ` see below < workflow-usage-guard-events >` );
217
217
- leave: The object is about to leave a place;
218
218
- transition: The object is going through this transition;
219
219
- enter: The object entered a new place. This is the first event where the object' is marked as being in the new place;
@@ -251,6 +251,8 @@ Here is an example how to enable logging for every time a the "blog_publishing"
251
251
}
252
252
}
253
253
254
+ .. _workflow-usage-guard-events :
255
+
254
256
Guard events
255
257
~~~~~~~~~~~~
256
258
0 commit comments