This PR adds an example for how to use compensations to leave the system in a consistent state in the presence of terminal exceptions (cancellations and deliberate usage of it). The example was added to the TS patterns and the newly created Java patterns. The compensations example is based on restatedev/restate-holiday.
This PR adds an example for how to use compensations to leave the system in a consistent state in the presence of terminal exceptions (cancellations and deliberate usage of it). The example was added to the TS patterns and the newly created Java patterns. The compensations example is based on restatedev/restate-holiday.
This fixes #52.