Skip to content

Separate GA and Pre-Release features for Nexus Messaging samples - #803

Merged
atol merged 4 commits into
mainfrom
alicelin/nexus-messaging-v2
Oct 6, 2026
Merged

atol merged 4 commits into
mainfrom
alicelin/nexus-messaging-v2

Conversation

@atol

@atol atol commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

What was changed

Separate GA and Pre-Release features for Nexus Messaging samples.

Please review by commit:

  1. Copy existing Nexus Messaging sample to v2 folder.
  2. Revert commit e344d6d updating the original Nexus Messaging sample.
  3. Update READMEs to reference v2 sample.

Checklist

  1. Closes: N/A

  2. How was this tested: Ran samples locally

  3. Any docs updates needed? No

@atol
atol marked this pull request as ready for review September 30, 2026 00:01
@atol
atol requested review from a team as code owners September 30, 2026 00:01
@atol
atol force-pushed the alicelin/nexus-messaging-v2 branch from b9d1f88 to 7445a7d Compare October 2, 2026 03:15
@atol
atol requested a review from Evanthx October 6, 2026 16:51

@Evanthx Evanthx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks fine!

@atol
atol merged commit 959678c into main Oct 6, 2026
10 checks passed

@Evanthx Evanthx left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor changes, mostly to comments!

.setWorkflowIdConflictPolicy(
WorkflowIdConflictPolicy.WORKFLOW_ID_CONFLICT_POLICY_USE_EXISTING)
.build());
// Starts a new GreetingWorkflow with the caller-specified workflow ID. This is an async

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This says workflow ID, but we are passing a user ID. This is in the readme as well, so just needs to make sure that change is plumbed through.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I think we corrected this in the new sample, but I wanted to do a clean revert. I'll follow up with a separate PR.

@@ -0,0 +1,19 @@
This sample shows how to expose a long-running Workflow's queries, updates, and signals as Nexus operations. This
version uses the experimental `@TemporalOperation` annotation to declare Temporal-backed Nexus operations as ordinary
methods on `@ServiceImpl` classes instead of `@OperationImpl` factories that return `TemporalOperationHandler.create(...)`.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It is using OperationHandler.sync and WorkflowRunOperation.fromWorkflowHandle instead of TemporalOperationHandler.create

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ah, right. Thanks for the catch - will update!

@atol
atol deleted the alicelin/nexus-messaging-v2 branch October 6, 2026 22:34
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