mvSapphire / PowerPipe

A library for .NET that uses a fluent interface to construct advanced workflows with ease.
MIT License
174 stars 9 forks source link

Implement steps Compensation #14

Closed mvSapphire closed 10 months ago

mvSapphire commented 10 months ago

Motivation:

Some pipelines might make no sense if they don't finish. When an error occurs we should have a mechanism to Compensate (rollback) the changes that were made.

Expected result:

Each step should have its own compensation step. When an error occurs during step execution we should compensate (rollback) changes of the current step and all parent steps that have their own compensation step.