danielgerlag/workflow-core

Can we support a rollback mechanism?

phuchm opened this issue · 1 comments

phuchm commented

It will be helpful if this library has a rollback mechanism.

For example:
My workflow includes below steps:

WriteReport -> Send to Approver -> Wait for approval (we can setup waiting time, if over, finish workflow) -> If success -> Send email and finish -> On the other hand, if failure, go back to write report step

You can achieve that by combining saga and compensate with retry.