Repository navigation
FOUR-6787 If more than two tasks end in an Intermediate Signal Throw Event Element, the flow will not be correctly completed - #240
Open
devmiguelangel wants to merge 3 commits into
Open
devmiguelangel wants to merge 3 commits into
devmiguelangel wants to merge 3 commits into
Conversation
…tates and enhancing transition handling
devmiguelangel
force-pushed
the
FOUR-6787
branch
from
October 13, 2026 18:47
e5ba9e5 to
7a66ff0
Compare
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Summary
If more than two tasks end in an Intermediate Signal Throw Event Element, the flow will not be correctly completed
An Intermediate Throw Event with two or more incoming sequence flows behaved like an AND-join.
TransitionTrait::hasAllRequiredTokens()only fired the shared transition when every incoming state had a token, and one firing consumed one token from each incoming flow. When an exclusive or parallel split delivered a token on only some of those flows, the event never fired and the request stayed In Progress.The event is no longer a join.
IntermediateThrowEventTransitionfires as soon as any incoming flow has a token and consumes exactly one token per firing, so each arriving token triggers the event and continues downstream. The graph is unchanged: one incoming state per sequence flow, all connected to the same transition. Token persistence andThrowEventTokenPassedstill happen on that transition, which keeps the previous event order for boundary and message tests.Before this change the transition waited until
inA,inB, andinCall held a token. Now a token on any one of them is enough.Related Tickets
FOUR-6787