Skip to content

Commit 41e634f

Browse files
committed
minor #8193 add note about same-state transitions (dbu)
This PR was submitted for the 3.2 branch but it was merged into the 3.3 branch instead (closes #8193). Discussion ---------- add note about same-state transitions maybe this could be made more understandable, but "leave" and "enter" made me think a transition that "stays" in the same place would maybe not trigger those events. i checked the code and tested my application and in fact it works. i think it makes sense to mention this explicitly. if transitions are explained in more detail somewhere, it could be a good idea to also mention the possibility of same-place transitions there. Commits ------- 8736ec2 add note about same-state transitions
2 parents fa5c5bc + 8736ec2 commit 41e634f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

workflow/usage.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,12 @@ order:
250250
* ``workflow.[workflow name].announce``
251251
* ``workflow.[workflow name].announce.[transition name]``
252252

253-
Here is an example of how to enable logging for every time a the "blog_publishing"
253+
.. note::
254+
255+
The leaving and entering events are triggered even for transitions that stay
256+
in same place.
257+
258+
Here is an example of how to enable logging for every time a "blog_publishing"
254259
workflow leaves a place::
255260

256261
use Psr\Log\LoggerInterface;

0 commit comments

Comments
 (0)