Here the error is “handled” already in the Catch block. If you go MWS and look the execution up, you’ll see that your service shows “Completed”, though it failed at divideInts.
At the end of the Catch block (still within), add an Exit step, set it to exit from $flow and signal FAILURE, and map the actual error message from getLastError. Does this now show the parent service as failed, in the email notification?
Note - Adding this Exit step comes with certain changes in behavious; for example, if your service is directly invoked by a UI; the actual internal error message will show up on the UI.
KM
#Flow-and-Java-services#webMethods#Integration-Server-and-ESB