Error Handling - need option to "fail" workflow #731
-
Hi All, Wanted to get another perspective on error handling with Serverless Workflow. A State can have defined onErrors, with transition/end. If you have a transition, it can execute further states to recover or compensate for the error or terminate the execution. I have 2 scenarios and feel that current error handling needs to be updated to correctly handle both scenarios. Scenario 1:
Scenario 2:
Currently, there is no way to define "Fail" workflow for Scenario 2. Look forward to comments. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@k-jay-c Very nice discussion, which is exactly the rationale behind the error handling PR we have been working on. You can check it out here #673 |
Beta Was this translation helpful? Give feedback.
-
Hey, @k-jay-c, this is very similar to the other discussion I answered a few moments ago (#698). The DSL has been refactored to handle cases like this. Would you mind taking a look? https://github.com/serverlessworkflow/specification/blob/main/dsl.md#fault-tolerance |
Beta Was this translation helpful? Give feedback.
Hey, @k-jay-c, this is very similar to the other discussion I answered a few moments ago (#698). The DSL has been refactored to handle cases like this. Would you mind taking a look? https://github.com/serverlessworkflow/specification/blob/main/dsl.md#fault-tolerance