Skip to content
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 stub with only an update method fails #1966

Closed
Quinn-With-Two-Ns opened this issue Jan 9, 2024 · 0 comments · Fixed by #1967
Closed

Workflow stub with only an update method fails #1966

Quinn-With-Two-Ns opened this issue Jan 9, 2024 · 0 comments · Fixed by #1967

Comments

@Quinn-With-Two-Ns
Copy link
Contributor

Expected Behavior

To use a stub that only defines an update method

Actual Behavior

Cannot use a stub that only defines an update method

reported on slack: https://temporalio.slack.com/archives/CTT84KXK9/p1704733148879439

example:

public interface ParentWorkflowInterface {

    @UpdateMethod
    void foo();

}

@WorkflowInterface
public interface WorkflowInterface extends ParentWorkflowInterface {

    @WorkflowMethod
    void execute();
}

public class WorkflowImpl implements WorkflowInterface {

	@Override
	void execute() {
	
	}
	
	@Override
	void foo() {
	
	}

}

This call fails

ParentWorkflowInterface workflow = workflowClient.newWorkflowStub(ParentWorkflowInterface.class, "workflowId");
workflow.foo();
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 a pull request may close this issue.

1 participant