Invoking a Compensation Routine

After you build a compensation routine, it must be invoked.

  1. Click on the Business Process canvas to activate the Tool Palette.
    Note: If the Tool Palette does not appear either on the Fast View shortcut bar or as an open view in the perspective, open the Tool Palette.
  2. Click the Exception Processing tool palette.
  3. From the Exception Processing tool palette, select the Throw Exception activity and drag and drop it onto the canvas.
  4. Connect the Throw Exception activity to the output node of the complex activity that contains the compensation handler.
  5. From the Exception Processing tool palette, select the Handle Exception activity and drag and drop it onto the canvas.
  6. Click Maximize in the title bar of the Handle Fault activity.

    The handle fault canvas expands to the size of the editor.

  7. From the Exception Processing tool palette, select Compensate and drag and drop it into the Fault Handler.
  8. Connect Start to Compensate.

    The compensation handler is complete.

Related concepts
Compensate Activities

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.