[WORKFLOW] How to apply multiple transitions from the same place? #61483
Unanswered
antoine1003
asked this question in
Q&A
Replies: 1 comment 1 reply
-
What I would do is have a single transition going from there is no concept of "as long as it's needed by other flows" in a workflow, which is why your current attempt fails. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I'm working with Symfony's Workflow component (
type: workflow
, notstate_machine
) and have a situation where I need to apply multiple transitions from the same place, but I'm facing a conflict with how markings are managed.Context
I'm modeling a complex amendment workflow. All amendment types (TYPE_1, TYPE_2) branch out from the same place:
consolidation_final_check
.Each amendment transition starts from this shared place. For example:
This allows me to apply multiple amendment transitions in parallel, because
consolidation_final_check
remains in the marking.However, I run into issues when I move forward in one flow.
The Problem
Consider this transition:
When I apply it:
consolidation_final_check
is removed from the marking (because it's infrom:
but not into:
).to_type_2
), which still needconsolidation_final_check
in theirfrom:
list.So effectively, once I commit to one flow, the other amendment branches become inaccessible — even though they haven't been used yet.
What I’m Trying to Achieve
I want to:
consolidation_final_check
)consolidation_final_check
in the marking as long as it's needed by other flows (or via another method if it exists)Possible Solution?
I’ve started doing this:
This seems to work, since it preserves
consolidation_final_check
, allowing other transitions to still function. But doesn't seems to be clean as I don't want to alway keep thisconsolidation_final_check
in all transitions...Questions
Thanks in advance for your help!
Beta Was this translation helpful? Give feedback.
All reactions