pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/flowable/flowable-engine/pull/4158

bal-52276e82f63bb403.css" /> Fix boundary event iterator desynchronization in ContinueProcessOperation by uucoding · Pull Request #4158 · flowable/flowable-engine · GitHub
Skip to content

Fix boundary event iterator desynchronization in ContinueProcessOperation#4158

Open
uucoding wants to merge 4 commits intoflowable:mainfrom
uucoding:main
Open

Fix boundary event iterator desynchronization in ContinueProcessOperation#4158
uucoding wants to merge 4 commits intoflowable:mainfrom
uucoding:main

Conversation

@uucoding
Copy link

The executeBoundaryEvents method had a critical iterator desynchronization bug. The while loop assumed that the boundaryEvents and boundaryEventExecutions lists contained matching elements in the same order, but they did not due to inconsistent filtering.

For example:

  • createBoundaryEvents returns only: [TimerExec, ErrorExec] (compensation events are skipped)
  • executeBoundaryEvents receives: [Timer, Compensation, Error] (all events)

Loop pairing comparison:

Expected pairing:              Actual incorrect pairing:
Timer ↔ TimerExec ✓            Timer ↔ TimerExec ✓
Error ↔ ErrorExec ✓            Compensation ↔ ErrorExec ✗ 

…tion

**The `executeBoundaryEvents` method had a critical iterator desynchronization bug. The `while` loop assumed that the `boundaryEvents` and `boundaryEventExecutions` lists contained matching elements in the same order, but they did not due to inconsistent filtering.**

**For example:**
- `createBoundaryEvents` returns only: `[TimerExec, ErrorExec]` (compensation events are skipped)
- `executeBoundaryEvents` receives: `[Timer, Compensation, Error]` (all events)

**Loop pairing comparison:**
```
Expected pairing:              Actual incorrect pairing:
Timer ↔ TimerExec ✓            Timer ↔ TimerExec ✓
Error ↔ ErrorExec ✓            Compensation ↔ ErrorExec ✗ 
```
…sOperation

Fix boundary event iterator desynchronization in ContinueProcessOpera…
@filiphr
Copy link
Contributor

filiphr commented Feb 3, 2026

@uucoding can you please write a test case for this?

@uucoding
Copy link
Author

uucoding commented Feb 3, 2026

@uucoding can you please write a test case for this?

@filiphr Sure, I've already submitted it. Please take a look.

@uucoding
Copy link
Author

Hi @filiphr ,

Hope you're doing well!

Just circling back on the test case I submitted last month for the boundary event iterator desynchronization fix. When you have a moment, could you please review it and let me know if any changes are needed?

Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy