flowable / flowable/flowable-engine

Async StartEvent causes process level 'start' execution listener to be run twice

Aperta
#2,855 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
9.5k
Fork
2.9k
Merge medio
7h 8m
PR unite (30g)
2

Descrizione

**Describe the bug**
If the start event element of the diagram is **async** then `ContinueProcessOperation#run` is called twice for the start event element which leads to calling any process level execution listeners twice as well (see also `ContinueProcessOperation#continueThroughFlowNode` and `ContinueProcessOperation#executeProcessStartExecutionListeners`).

If the start event element is **sync** then the listener is called just once (as expected).

**Expected behavior**
The process level start execution listener should be called just once when the process is started.

**Code**
Should be pretty straightforward for you to reproduce with any trivial diagram that starts like this:
```





...
```

**Additional context**
Using latest Flowable version (process engine only) with Spring Boot, Postgres 10.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia leggendo ContinueProcessOperation#run, ContinueProcessOperation#continueThroughFlowNode e ContinueProcessOperation#executeProcessStartExecutionListeners. Riproduci il problema con un processo eseguibile minimo contenente un async startEvent e un listener di esecuzione di avvio a livello di processo, quindi confrontalo con un evento di avvio sincrono. Il lavoro è completato quando il listener viene eseguito esattamente una volta all’avvio del processo async.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
java
Ambito
backend
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.