8000 [Workflow] The workflow is un-deterministic when there a many transition with the same name · Issue #29140 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Workflow] The workflow is un-deterministic when there a many transition with the same name #29140
Closed
@lyrixx

Description

@lyrixx

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 :

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0