You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently it's a bit clumsy to fail a workflow from within an update. You have to set a flag in your updateMethod, and then in the workflow code watch for that flag and throw the failure from there (according to this post re: the java sdk at least).
Describe the solution you'd like
throw ApplicationFailure should return (or at least have the option to return) WorkflowFailedError instead of WorkflowUpdateFailedError.
Is your feature request related to a problem? Please describe.
Currently it's a bit clumsy to fail a workflow from within an update. You have to set a flag in your updateMethod, and then in the workflow code watch for that flag and throw the failure from there (according to this post re: the java sdk at least).
Describe the solution you'd like
throw ApplicationFailure
should return (or at least have the option to return)WorkflowFailedError
instead ofWorkflowUpdateFailedError
.Additional context
There is a similar issue active in the Java SDK repo: temporalio/sdk-java#87
The text was updated successfully, but these errors were encountered: