Leading on from the previous post -
In this simple scenario we augment the functionality with the following –
Create a subprocess to contain the input validation
o Validate Customer
o Check Inventory
Add error handling to cope with „invalid“ orders
o Invalid Customer
o Insufficient Stock
Both of these are business exceptions, which we will catch (Catch error event). The „errored“ order will be passed on to a HumanWorkflow component through which a SalesRep can fix that order.
To begin with, we will add these business errors to the Java class and redeploy it as a web service to WLS.
--------------------- Revised version of Java class(es) ---
package com.niall;
import javax.jws.WebService;
@WebService(serviceName = "OrderService")
public class OrderService {
public OrderService() {
super();
}
public String validat