Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 6 Exception Handling : Rethrow Activity

Rethrow Activity
The Rethrow activity is used within an exception-handling routine to throw the caught error again. This is useful if you wish to perform some processing within an error-handling routine, but you also wish to send the error to the next higher scope.
For example, an order-entry process may accept new items as long as the current order is still in the process of ordering the items from the vendor. A group is used to contain the activities that order the items from the vendor. If an error occurs during that time, a message is written to the log then the error is rethrows to the main orchestration process. The main orchestration process catches the invalid item error and sends a fault message to the order requestor and exits the process. Figure 29 illustrates this example.
Figure 29 Using the Rethrow activity

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved