You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When multiple tokens (2 or more) arrive at a parallel gateway from a single flow, two of them merge and one token will continue (e.g., if there were 3 tokens, 2 will merge, and only 1 will be stuck there).
It is wrong, and all three tokens should get stuck there, since it waits for the merge on ALL the incoming flows.
How it should be:
How it is:
Parallel gateway waits for as many tokens as there are incoming flows, not necessarily for all the tokens from all sides to be merged.
Steps to Reproduce
Have a model (e.g., like one I showed), and then have a situation, when 0 tokens come from one path to a parallel gateway, and all the tokens come from a single path, and then see how each 2 tokens would merge.
6_V_powerpoint.mp4V6_camunda_modeler.mp4
Expected Behavior
Parallel gateway MUST wait for tokens from ALL incoming paths (i.e., a token coming from two paths can be merged, and two tokens from one path - cant).
I believe it is because a gateway merges the tokens automatically, depending on the number of incoming flows
P.S.
We are the researchers trying to use CAMUNDA token modeler for better teaching of the students, we were thinking if we can contact somehow the person, who could help with fixing the bug? Thanks!
nikku
changed the title
Parallel gateway doesn't necessarily wait for tokens coming from all incoming paths, but for as many as there are incoming paths (must wait for a token from all sides to merge one token)
Parallel gateway join is not spec compliant (does not account for tokens on all incoming flows)
Feb 2, 2024
Describe the Bug
When multiple tokens (2 or more) arrive at a parallel gateway from a single flow, two of them merge and one token will continue (e.g., if there were 3 tokens, 2 will merge, and only 1 will be stuck there).
It is wrong, and all three tokens should get stuck there, since it waits for the merge on ALL the incoming flows.
How it should be:
How it is:
Parallel gateway waits for as many tokens as there are incoming flows, not necessarily for all the tokens from all sides to be merged.
Steps to Reproduce
Have a model (e.g., like one I showed), and then have a situation, when 0 tokens come from one path to a parallel gateway, and all the tokens come from a single path, and then see how each 2 tokens would merge.
6_V_powerpoint.mp4
V6_camunda_modeler.mp4
Expected Behavior
Parallel gateway MUST wait for tokens from ALL incoming paths (i.e., a token coming from two paths can be merged, and two tokens from one path - cant).
I believe it is because a gateway merges the tokens automatically, depending on the number of incoming flows
P.S.
We are the researchers trying to use CAMUNDA token modeler for better teaching of the students, we were thinking if we can contact somehow the person, who could help with fixing the bug? Thanks!
Depends on bpmn-io/bpmn-js-token-simulation#130
The text was updated successfully, but these errors were encountered: