You will need to write a java service to do whatever printing you want to do.
If you are using the broker, what I would suggest is to define a broker document with all of the fields that define your error condition, and publish it when one of these errors occur. Then have a service that subscribes to your document, and calls a java service to do the actual printing. If it can be done in java, it can be done in webMethods.
#webMethods-General#Integration-Server-and-ESB#webMethods