Skip to content

Conversation

vkoby
Copy link
Contributor

@vkoby vkoby commented Oct 26, 2021

What was changed

Added a newUntypedWorkflowStub method to WorkflowClient

Why?

Overload, to make stub creation more convenient

  1. Closes Add an ability to create WorkflowStub from workflowInterface #761

  2. How was this tested:
    No logic to test

Copy link
Member

@bergundy bergundy left a comment

Choose a reason for hiding this comment

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

From what I understand the issue asked to support creating an untyped stub from a WorkflowInterface not workflowId.

@Spikhalskiy
Copy link
Contributor

Spikhalskiy commented Oct 27, 2021

@bergundy see a discussion in the original ticket. The ask was to support creation based on workflowId + interface. After discussion with Max I realized that the interface is just not needed here. It's participating only in error messages/exceptions, but I untyped doesn't use neither String workflow type nor workflowInterface for anything useful. So the task transformed into exposing the simplest version for our user - get WorkflowStub by workflowId.

@bergundy
Copy link
Member

Okay, I wasn't up-to-date with the discussion.
I'm not a codeowner, @Spikhalskiy can you please approve?

@vkoby vkoby merged commit be99732 into temporalio:master Oct 27, 2021
@vkoby vkoby deleted the untyped-stub branch October 27, 2021 17:09
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.

Add an ability to create WorkflowStub from workflowInterface
3 participants