Skip to content

Fix #1314 - Introduce LifecycleEvents to expose events constants to clients#1320

Merged
ricardozanini merged 3 commits intoserverlessworkflow:mainfrom
ricardozanini:issue-1314
Apr 16, 2026
Merged

Fix #1314 - Introduce LifecycleEvents to expose events constants to clients#1320
ricardozanini merged 3 commits intoserverlessworkflow:mainfrom
ricardozanini:issue-1314

Conversation

@ricardozanini
Copy link
Copy Markdown
Member

Many thanks for submitting your Pull Request ❤️!

What this PR does / why we need it:
Fixes #1314

Special notes for reviewers:

Additional information (if needed):

@ricardozanini ricardozanini requested a review from fjtirado as a code owner April 15, 2026 18:37
Copilot AI review requested due to automatic review settings April 15, 2026 18:37
Copy link
Copy Markdown
Contributor

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

Introduces a dedicated LifecycleEvents constants class so downstream consumers can reference canonical Serverless Workflow lifecycle CloudEvent type strings, and refactors the lifecycle CloudEvent publisher to use those shared constants.

Changes:

  • Added io.serverlessworkflow.impl.LifecycleEvents with public CloudEvent type constants.
  • Removed the previously private type constants from AbstractLifeCyclePublisher and switched to importing from LifecycleEvents.
  • Kept getLifeCycleTypes() behavior intact while centralizing the source of truth for event type strings.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
impl/core/src/main/java/io/serverlessworkflow/impl/lifecycle/ce/AbstractLifeCyclePublisher.java Replaces in-class private CloudEvent type constants with static imports from the new shared constants class.
impl/core/src/main/java/io/serverlessworkflow/impl/LifecycleEvents.java Adds a public constants holder for official lifecycle CloudEvent type strings for downstream consumption.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI review requested due to automatic review settings April 15, 2026 18:41
Copy link
Copy Markdown
Contributor

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@fjtirado
Copy link
Copy Markdown
Collaborator

@ricardozanini can you format the file in order to merge?

ricardozanini and others added 3 commits April 16, 2026 09:11
…nts constants to clients

Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
…ents.java

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Ricardo Zanini <ricardozanini@gmail.com>
@ricardozanini ricardozanini merged commit 3dfd814 into serverlessworkflow:main Apr 16, 2026
3 checks passed
@ricardozanini ricardozanini deleted the issue-1314 branch April 16, 2026 13:22
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.

Make CloudEvent type constants in AbstractLifeCyclePublisher public

3 participants