Skip to content

Move output from WorkflowInstanceData to WorkflowInstance#1358

Merged
fjtirado merged 1 commit intoserverlessworkflow:mainfrom
fjtirado:Fix_#1357
Apr 30, 2026
Merged

Move output from WorkflowInstanceData to WorkflowInstance#1358
fjtirado merged 1 commit intoserverlessworkflow:mainfrom
fjtirado:Fix_#1357

Conversation

@fjtirado
Copy link
Copy Markdown
Collaborator

Fix #1357

Copilot AI review requested due to automatic review settings April 30, 2026 10:21
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

This PR addresses #1357 by moving the blocking output() accessor off of WorkflowInstanceData (which is exposed to event listeners via WorkflowContextData) and onto WorkflowInstance.

Changes:

  • Remove WorkflowModel output() from WorkflowInstanceData.
  • Add WorkflowModel output() to WorkflowInstance.

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/WorkflowInstanceData.java Removes output() from the “instance metadata” interface intended for listeners/snapshots.
impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstance.java Reintroduces output() on the full WorkflowInstance API.

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

Comment thread impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstanceData.java Outdated
Signed-off-by: fjtirado <ftirados@redhat.com>
@fjtirado fjtirado merged commit df496ce into serverlessworkflow:main Apr 30, 2026
3 checks passed
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.

Move output method from WorkflowInstanceData to WorkflowInstance

2 participants