We want to support a kind of “RevertToPreviousState” event, with the purpose of
making corrections. The effect of this event should be to “undo” a number of
previous events, after which a new series of corrected events will be applied
We do not want to keep a history of states in our domain model, but instead
make use of Event Sourcing to replay events up to a specific point in history,
stopping just before the events to be corrected.
How do we do this in a clean way?
We could not find a way to process the “RevertToPreviousState” event in the
same way while applying the event and while loading the event from the event
We hope this is clear enough to get an answer. We will be happy to explain if
it is not.