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

Add ability to complete workflow from any line #87

Open
mfateev opened this issue May 15, 2020 · 1 comment
Open

Add ability to complete workflow from any line #87

mfateev opened this issue May 15, 2020 · 1 comment
Labels
enhancement User experience

Comments

@mfateev
Copy link
Member

mfateev commented May 15, 2020

Is your feature request related to a problem? Please describe.
Currently the only way to complete or fail a workflow is through completing (or throwing exception) from the method annotated with @WorkflowMethod. Sometimes it is convinient to complete or fail workflow from some other function or even thread.

Describe the solution you'd like
An API to complete workflow from any place. Strawman:

Workflow.complete(result);
Workflow.fail(Exception); 

Describe alternatives you've considered
Do not introduce this API and rely on completion of main workflow method.l

Additional context
This feature is based on a customer request.

@mfateev mfateev added the enhancement User experience label May 15, 2020
@mfateev
Copy link
Member Author

mfateev commented Mar 21, 2024

Similar request: https://community.temporal.io/t/fail-workflow-form-updatemethod/11441

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement User experience
Projects
None yet
Development

No branches or pull requests

1 participant