flowable / flowable/flowable-engine

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

Open
#2,855 0 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**
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.

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.