- Get form fields String email = request.getParameter("email");
String name = request.getParameter("name"); String amount = request.getParameter ("amount");
String model = request.getParameter("model"); String year = request.getParameter("year");
2. Create loan application XML document String xml = "
3. Initiate the BPEL process here // Connect to Oracle BPEL server Locator locator = new Locator("default","bpel"); IDeliveryService deliveryService = (IDeliveryService) locator.lookupService(IDeliveryService.SERVICE_NAME ); // Construct a normalized message and send to Oracle BPEL Process Manager NormalizedMessage nm = new NormalizedMessage(); nm.addPart("payload", xml); // Initiate the BPEL process deliveryService.post("MyLoanFlow", "initiate", nm);