Compensate Activity

Compensate activities provide business process logic to undo or compensate for completed logic occurring within a complex activity in a business process service that has encountered some exception. A complex activity can contain only one compensation routine.

They 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.

Building a Compensation Routine

Building a Complex Activity

Handlers

Send your feedback on this help topic to Sybase Tech Pubs: pubs@sybase.com