flowable / flowable/flowable-engine

Bad behavior using Parallel Gateway with 2 end events

Open
#3,577 12 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 create a simple workflow with 2 parallel **NON** EXCLUSIVE AND **ASYNC** branches
(I want to be able to execute both branches really in parallel), each one finishing by its own end event.

![image](https://user-images.githubusercontent.com/43992260/211025511-cc68e5db-acba-400a-acda-545dd57a8770.png)

When I start the workflow, everything seems fine according to the log (no exception, all branch messages displayed)
![image](https://user-images.githubusercontent.com/43992260/211025637-2c9508b4-affe-493f-b994-6cd23f18ba2f.png)

and the workflow diagram shows it is finished

![image](https://user-images.githubusercontent.com/43992260/211025600-f7374f5e-3a9d-48b8-bcef-92b16a2a5b51.png)

But according to the UI and the DB, it isn't the case:
UI - still running
![image](https://user-images.githubusercontent.com/43992260/211025553-477cbc02-7231-4337-9eff-b4c68ad81556.png)
DB - EXECUTION:
![image](https://user-images.githubusercontent.com/43992260/211026381-9e70b91f-fc0b-4e9c-ba33-c8f0b4754714.png)
DB - RU_ACTINST: **ALL activities with an END_TIME**
![image](https://user-images.githubusercontent.com/43992260/211026521-17ee4aa2-9053-48b2-b60f-3055532a306a.png)

**Expected behavior**
I would like to:
1. see that there's a problem (Optimistic Exception) in the log
2. see a retry on the branch(es) that failed (if any)
3. no more see the workflow as running (no more EXECUTION, no more history in ACTINST)

_BTW we can't configure an end event like we do for a gateway (which may be exclusive and async), so no way to handle a possible optimistic exception locally at this end event. The only possibility to be able to retry only this end event is to add a dummy task which may be exclusive and async and so fail then retry without impact on the previous steps in the branch. **Adding exclusive and async attributes to an (end) event would be useful.**_

**Code**
The corresponding APP ZIP file
[TEST_PARALLEL_END.zip](https://github.com/flowable/flowable-engine/files/10360632/TEST_PARALLEL_END.zip)

**Additional context**
Flowable 6.7.2 in Tomcat 8

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.