symfony: Workflow component - incorrect announce events

Symfony version(s) affected: Workflow 5.2

Description
When transition is completed “announce” events are triggered. According to documentation:

workflow.announce
Triggered for each transition that now is accessible for the subject.

Instead the event that is triggered is for the already completed transition, which effectively makes it equivalent to “completed” event.

How to reproduce
Apply transition and capture the events.

Possible Solution

Additional context
I have tested to disable announce events and found out that the guard events for every accessible transition from the new place are triggered only when announce events are enabled. But the announce event itself is for the completed transition.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 17 (9 by maintainers)

Most upvoted comments

Can you please wrap your code examples in an application that we could clone and debug what is going on?