Compensate Activities

Compensate activities provide business process logic to undo, or compensate for, completed logic occurring within a complex activity in a business process that encountered an exception.

A complex activity can contain only one compensation routine.

A compensation routine can be invoked explicitly or implicitly when a complex activity has completed.


Compensation routines are invoked in the reverse order of how the complex activities completed. A compensate activity contains a snapshot of the variables within its scope at the time the complex activity completed. The compensate activity within a specific complex activity is invoked for each successful completion of the complex activity.

Related tasks
Invoking a Compensation Routine

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.