Skip to content

Conversation

backport-action
Copy link
Collaborator

Description

Backport of #34459 to stable/8.5.

relates to #33589

Add a Parameterized test class covering all supported boundary event types
(message, timer, signal, escalation, error, compensation) in both interrupting
and non-interrupting modes. Verifies that interrupting events terminate the
attached activity and non-interrupting events keep it running to completion.

(cherry picked from commit dbc9a3a)
Boundary events no longer require outgoing sequence flows by default.
Only compensate boundary events still must have no outgoing flows and a compensation association.

- Remove global “must have outgoing” check
- Add hasCompensationDefinition guard
- Introduce isValidCompensationBoundaryEvent to enforce association
- Update validation messages accordingly

(cherry picked from commit 9cb86dc)
- CompensationEventTest: expect new message for missing compensation
association:
  “Compensation boundary events must have a compensation association and
   no outgoing sequence flows”
- ZeebeBoundaryEventValidationTest: remove old “must have outgoing” case
 and add compensation‐specific scenario using the updated validation
 message

(cherry picked from commit e66e109)
Copy link
Contributor

github-actions bot commented Aug 12, 2025

The latest Buf updates on your PR. Results from workflow Zeebe CI / protobuf-checks (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped⏩ skipped✅ passedAug 14, 2025, 2:01 PM

@berkaycanbc berkaycanbc requested a review from Copilot August 14, 2025 13:56
@berkaycanbc
Copy link
Contributor

@copilot please fix the header issue in class BoundaryEventWithoutOutgoingSequenceFlowTest.java

Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This backport fixes an issue where processes with boundary events without outgoing flows couldn't be deployed properly. The fix specifically addresses validation logic for compensation boundary events, which are allowed to have no outgoing sequence flows when they have a compensation association.

  • Updated validation error messages to be more specific about compensation boundary event requirements
  • Refactored validation logic to properly handle compensation boundary events vs. other boundary event types
  • Added comprehensive test coverage for boundary events without outgoing sequence flows

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.

File Description
BoundaryEventValidator.java Updated validation logic to specifically handle compensation boundary events and improved error messages
ZeebeBoundaryEventValidationTest.java Updated test to use compensation boundary event and verify new error message
CompensationEventTest.java Updated expected error message to be more specific about compensation boundary events
BoundaryEventWithoutOutgoingSequenceFlowTest.java Added comprehensive parameterized tests for various boundary event types without outgoing flows

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@berkaycanbc
Copy link
Contributor

https://gh.io/copilot-coding-agent-docs please fix the header issue in class BoundaryEventWithoutOutgoingSequenceFlowTest.java

Not yet 🤷

@berkaycanbc berkaycanbc enabled auto-merge August 14, 2025 14:04
@berkaycanbc berkaycanbc added this pull request to the merge queue Aug 14, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 14, 2025
@cmur2 cmur2 added this pull request to the merge queue Aug 19, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Aug 19, 2025
@berkaycanbc berkaycanbc added this pull request to the merge queue Sep 8, 2025
Merged via the queue into stable/8.5 with commit ad8a983 Sep 8, 2025
42 checks passed
@berkaycanbc berkaycanbc deleted the backport-34459-to-stable/8.5 branch September 8, 2025 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/zeebe Related to the Zeebe component/team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants