Compensable Scope
Runs a body and registers how to undo it, so a later Compensate can run the undo.
Behaviour
Built-in workflow activity · type id velophex.compensablescope
Properties#
Options#
Compensation data name#
CompensationDataName · String · Optional · Default: Not specified
Name under which the compensation handler reads the data captured when the body completed.
Compensation data type#
CompensationDataType · Type · Optional · Default: Object
Type of the compensation data; object when empty.
Compensation data#
CompensationData · Compensation data type · Optional · Default: Not specified
Evaluated when the body completes; persisted with the registration and given to the handler.
How it works#
Compensable Scope runs its Body. Once the body has completed, the scope is registered for compensation. A later Compensate runs the scope's Compensation handler for each registration, newest first. Compensation is always explicit: neither faults nor cancellation run it on their own.
Properties
Options
How it works