serverlessworkflow / specification

Contains the official specification for the Serverless Workflow Domain Specific Language. It provides detailed guidelines and standards for defining, executing, and managing workflows in serverless environments, ensuring consistency and interoperability across implementations.
http://serverlessworkflow.io
Apache License 2.0
742 stars 147 forks source link

Errors per actions #427

Closed manuelstein closed 3 years ago

manuelstein commented 3 years ago

What happened: Using an array of actions, e.g. [functionA, functionB] can have overlapping errors, e.g. [CustomerNotFoundError]. Currently, I can only define a single error handling, but can't distinguish with which function it has occured.

Anything else we need to know?: It can be resolved with more comprehensive actions (with retry, error handling, etc. per action). Or if state nesting were to be reintroduced, each action could get its own operation state, so a list of actions (e.g. branches in foreach, switch, etc.) would become their own state chart.

Environment:

yzhao244 commented 3 years ago

@manuelstein Yes, I agree with your issue here :). I raised similar one at here. #398

tsurdilo commented 3 years ago

this was added as part of https://github.com/serverlessworkflow/specification/pull/435 it includes "errorRef" as well as optional "errorRefs" array of strings