Skip to content

Signal links#2889

Open
Evanthx wants to merge 12 commits into
masterfrom
signal-links
Open

Signal links#2889
Evanthx wants to merge 12 commits into
masterfrom
signal-links

Conversation

@Evanthx
Copy link
Copy Markdown
Contributor

@Evanthx Evanthx commented May 26, 2026

Sending signals through Nexus now populates a link from the sender to the receiver as well as one from the receiver back to the sender.

What was changed

Why?

Checklist

  1. Closes

  2. How was this tested:

  1. Any docs updates needed?

@Evanthx Evanthx requested a review from a team as a code owner May 26, 2026 21:00
Comment on lines +107 to +111
public void addSignalWorkflowResponseLink(Link link) {
if (link != null) {
this.signalWorkflowResponseLinks.add(link);
}
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I'm wondering if this is too operation specific. As more operations include links, we'll keep adding new getters/setters here and then have to ensure they're all consumed when building the StartOperationResponse. A perhaps contrived example would be a nexus operation that signals a workflow, updates a workflow, then starts a workflow would have backlinks for all of those if my understanding is correct.

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.

yeah I would tend to agree, I don't think the context should care what operation decided to attach a link

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.

Renamed to backlinks

Comment thread temporal-sdk/src/main/java/io/temporal/internal/nexus/NexusTaskHandlerImpl.java Outdated
Comment thread temporal-sdk/src/main/java/io/temporal/internal/nexus/NexusTaskHandlerImpl.java Outdated
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.

3 participants