Closed manuelstein closed 3 years ago
@manuelstein Yes, I agree with your issue here :). I raised similar one at here. #398
this was added as part of https://github.com/serverlessworkflow/specification/pull/435 it includes "errorRef" as well as optional "errorRefs" array of strings
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: