Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MNT-24081: executionListeners executed when process instance is delet… #4580

Conversation

vrmoreira
Copy link
Contributor

…ed (#4572)

(cherry picked from commit 8459aef)

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation
  • Other... Please describe:

Description

Does this PR introduce a breaking change? (check one with "x")

  • Yes
  • No

@vrmoreira vrmoreira marked this pull request as ready for review February 7, 2024 18:24
Copy link
Member

@erdemedeiros erdemedeiros left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines +428 to +434
// Execute execution listeners for process end.
Process process = ProcessDefinitionUtil.getProcess(processInstanceExecutionEntity.getProcessDefinitionId());
if (CollectionUtil.isNotEmpty(process.getExecutionListeners())) {
executeExecutionListeners(process,
processInstanceExecutionEntity,
ExecutionListener.EVENTNAME_END);
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggestion for future developments: prefer to extract a method with a meaningful name instead of using a comment to tell what the code block does.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the input, it's a good contribution for CI: Continuous Improvement 👍

@vrmoreira vrmoreira merged commit f4bfaf7 into develop Feb 8, 2024
5 checks passed
@vrmoreira vrmoreira deleted the fix/MNT-24081-END-Execution-Listener-attached-to-the-process-instance-is-not-called_develop branch February 8, 2024 16:25
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.

None yet

2 participants