-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workflow.newExternalWorkflowStub #2180
Comments
Arguably it shouldn't even work on the client. It'd make one wonder why a |
@WorkflowInterface defines a workflow type. There is no "Retryable" workflow type to register. |
I was under the impression the annotation is also meant to be required for caller use. I assume with this issue, we should accept basically any interface in Java including standard library ones (and that the client side already does)? I assume that it's at method call time on the proxy where we will fail for any non-signal/update/query-annotated method? It could be argued (and how we did it in .NET/Python) that if you're willing to define methods w/ Temporal annotations in an interface, you should mark that interface as one capable of being used as a workflow stub via the But I understand if in Java we expect methods at any level to have annotations but not classes. And of course there's value in consistency with client side. Can disregard my concern. |
The WorkflowClient.newWorkflowStub call validates that only methods that are annotated with signal/update/query are allowed at the interface. |
Expected Behavior
The following works when using Workflow Client:
The same should work when signaling workflow from an external workflow:
Actual Behavior
The newExternalWorkflowStub fails with:
The text was updated successfully, but these errors were encountered: