8000 [Workflow] State is lost running multiple branches in parallel · Issue #22521 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[Workflow] State is lost running multiple branches in parallel #22521
Closed
@marcospassos

Description

@marcospassos
Q A
Bug report? Yes
Feature request? No
BC Break report? No
RFC? No
Symfony version 3.2.7

Consider the following workflow:

graph

Once events can happen asynchronously, I get a new running branch for every event triggered from an action place. To achieve such outcome, I've added some recursive transitions. I have also added some guard listeners so that I can ensure that a transition will never be applied from the same place more than once:

graph2

Now, let's suppose I have trailed the following path:

(start) -> [match] -> (email-action) -> [email-send] -> (sms-action)

At this stage, the marking points to [sms-action, email-action].

If I apply the transition sms-bounce, the new place email-action will get merged with the existing one, resulting in the marking [email-action]. So now any transition applied from there will run as a single thread, and then the current state is mixed.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0