Software AG Products 10.7 | Service Development Help | Failure Handling in Flow Services Using the TRY, CATCH, and FINALLY Steps | About the TRY, CATCH, and FINALLY Steps
 
About the TRY, CATCH, and FINALLY Steps
 
The TRY Step
The CATCH Step
The FINALLY Step
The TRY, CATCH, and FINALLY steps are the webMethods flow language facility for handling exceptions in flow services. The steps provide flow service authors with the ability to execute a series of steps with the additional ability to provide another series of steps that Integration Server executes if a failure occurs in the initial series, and the ability to specify yet another series of steps that Integration Server executes regardless of whether the initial series of steps succeeds or fails.
The general usage pattern for try-catch-finally is a single TRY step followed by zero or more CATCH steps, followed by zero or one FINALLY steps. CATCH steps can be configured to handle specific failures. The FINALLY step executes a set of steps after a TRY step completes successfully or fails. If a CATCH step executes, Integration Server executes the FINALLY step after the CATCH step completes.