Designer 10.7 | webMethods Service Development Help | Failure Handling in Flow Services Using the TRY, CATCH, and FINALLY Steps | About the TRY, CATCH, and FINALLY Steps | The FINALLY Step
 
The FINALLY Step
The FINALLY step contains logic that Integration Server executes regardless of whether the TRY step succeeds or fails. The exception to this is when a step contains an EXIT step configured to exit $flow and signal failure. Often, the FINALY step contains clean up logic that needs to execute regardless of the outcome of the preceding TRY or CATCH steps, such as releasing resources or closing sockets.
When executing a FINALLY step, Integration Server executes the child steps in order, one after the other until the entire sequence of steps completes successfully, a step fails, or an EXIT step executes. When a child step fails, Integration Server does not execute the remainder of the FINALLY child steps. Instead, Integration Server exits the FINALLY step with an uncaught failure.