Easiest way (and sufficient here). Insert an exit step with exit flow and signal failure.
Alternative for throwing errors: pub.flow:throwExceptionForRetry
This enables calling the service from within a repeat step which repeats on error.
Please look into Developer_Users_Guide for more Details.
Martin
#webMethods#Integration-Server-and-ESB#Flow-and-Java-services