Skip to content

Conversation

@Quinn-With-Two-Ns
Copy link
Contributor

Fix a bug causing newExternalWorkflowStub to fail on interfaces without WorkflowMethod

closes #2180

@Quinn-With-Two-Ns Quinn-With-Two-Ns requested a review from a team as a code owner May 17, 2025 07:02
WorkflowOutboundCallsInterceptor workflowOutboundCallsInterceptor,
Functions.Proc1<String> assertReadOnly) {
this.workflowMetadata = POJOWorkflowInterfaceMetadata.newInstance(workflowInterface);
this.workflowMetadata = POJOWorkflowInterfaceMetadata.newInstance(workflowInterface, false);
Copy link
Member

Choose a reason for hiding this comment

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

Got a bit confused on this trailing param reading:

if true, methods of the {@code anInterface} that are
annotated with {@link WorkflowMethod}, {@link QueryMethod}, {@link UpdateMethod}, {@link
UpdateValidatorMethod} or {@link SignalMethod} are processed like {@code current} is a
workflow interface even if it is not annotated with {@link WorkflowInterface} itself.

That'd make me think the default of true should work with non-workflow interfaces. But maybe I'm misunderstanding what was meant there.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think you are looking at the wrong method, the method I am calling is here

Fix a bug causing newExternalWorkflowStub to fail on interfaces without WorkflowMethod
@Quinn-With-Two-Ns Quinn-With-Two-Ns merged commit 2d9b906 into temporalio:master May 26, 2025
9 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.

Workflow.newExternalWorkflowStub

2 participants