Closed
Description
When many transitions have the same name, the workflow because un-deterministic. This is not cool.
It's impossible to build something really strong. How could the workflow guess what the dev intent?
I propose to update the interface:
- can(object $subject, string $transitionName)
+can(object $subject, Transition $transition)
- apply(object $subject, string $transitionName)
+apply(object $subject, Transition $transition)
I will add some helper to get the best transition for a transition name.
This will fix :
- [Workflow] buildTransitionBlockerList contains meaningles if block #28429
- [Workflow] Method buildTransitionBlockerList returns TransitionBlockerList of incorrect transition #28432
- [Workflow] Method buildTransitionBlockerList returns TransitionBlockerList of expected transition #28493
- [Workflow][FrameworkBundle] fixed guard event names for transitions #29137
- [FrameworkBundle][Workflow] fix guard expressions #28018
- [FrameworkBundle] fixed guard event names for transitions #28007 (comment)