flowable / flowable/flowable-engine

Process start, potentially migration: Signal scope gets ignored starting with the 2nd process

Offen
#3,921 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Java
Sterne
9.5k
Forks
2.9k
Ø Merge
7 Std. 8 Min.
Gemergte PRs (30 T.)
2

Beschreibung

**Describe the bug**
If I start a process that has a Signal event definition and a Signal Start Event, starting it will work normally the first time.
The second time, the resulting event subscription's scope definition will always be "null", because the event definition's signal ref gets overwritten the first time.

Potentially, this may also affect process instance migrations (there are 2 places in the code where the behavior is like this).

**Expected behavior**
I expect the same behavior each time - the signalref stays as-is, the event subscription always gets created with the right scope.

**Code**
I prepared a Pull Request here: https://github.com/flowable/flowable-engine/pull/3920

**I would love to add regression tests as well, but I can't seem to find a good place.**
**Please point me to a "good" place where I can add a test method as a regression test.**

**Additional context**
All that should matter is the flowable version.
I tried with 6.8.1 and 7.0.1, the bug is in both and seems to go back very far.

**Workaround**
Without a fix, the bug does not occur if Signal ID and name must are the same, e.g.
``

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Überprüfe Pull Request 3920 und reproduziere den Prozessstart-Ablauf zweimal: mit einer Signal event definition und einem Signal Start Event. Verifiziere, dass die Ereignisabonnierung bei jedem Start den signal scope beibehält, und füge anschließend einen Regressionstest im entsprechenden workflow-engine-Testbereich hinzu, der beim Nachverfolgen dieses Einstiegspunkts identifiziert wurde.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
java
Bereich
backend
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.