workflow-es icon indicating copy to clipboard operation
workflow-es copied to clipboard

Error handling

Open AviFix opened this issue 6 years ago • 1 comments

Hi,

Is there a way to execute some code if workflow fails?

Thanks

AviFix avatar Dec 30 '19 14:12 AviFix

You could use a saga transaction.

https://github.com/danielgerlag/workflow-es/blob/master/es2017-guide.md#saga-transactions https://github.com/danielgerlag/workflow-es/blob/master/samples/node.js/javascript/12-saga.js

danielgerlag avatar Dec 31 '19 02:12 danielgerlag