flowable / flowable/flowable-engine

Parallel Gateway continues if multiple tokens are received on the same path

Open
#4,166 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
9.5k
Forks
2.9k
Avg merge
7h 8m
Merged PRs (30d)
2

Description

**Describe the bug**
I have a process with a parallel gateway that waits on two branches, one of which has a loop which checks every hour whether a variable is true.
I would expect that the gateway waits for both branches to complete before proceeding, but it actually proceeds if the same branch completes twice.

This can happen because a Message Catch Event can spawn a new token, which gets sent down the same branch again.

Image

**Expected behavior**
I would expect the parallel gateway to wait for a token from each branch to arrive, rather than just waiting for 2 tokens to arrive from the same branch.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.