danielgerlag / workflow-core

Lightweight workflow engine for .NET Standard
MIT License
5.4k stars 1.2k forks source link

Can we support a rollback mechanism? #1224

Open phuchm opened 10 months ago

phuchm commented 10 months ago

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

axelgenus commented 10 months ago

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