Quickstart Examples - Loan Approval
===================================

This is a loan approval example that uses the amount field inside the
loan request to determine which action should be performed.

If the loan amount is less than 10000, then it will invoke the loan
assessor to determine the risk. If the risk is low, then it will approve
the loan. If the risk is not low, then it will invoke the loan
approver service. In the current implementation, all amounts less than
10000 are considered low risk.

If the loan amount is greater or equal to 10000, then it will invoke
the loan approver service. If the amount is greater than 20000, then the
approver will return a fault, indicating that the amount is too much.

To deploy the example, open a command line window in the example's folder,
and simply type 'ant deploy'. To undeploy, use the command 'ant undeploy'.

To test the example, for example using the SOAPUI client, example messages
can be found in the messages sub-folder, with the relevant WSDL (loanServicePT.wsdl) being
located in the bpel sub-folder.

Alternatively, use the 'ant sendloanreq1' command (from a command line window)
to send an example loan request message with amount less than 10000
directly to the deployed process. Or use the command 'ant sendloanreq2' to
send a loan request with amount greater or equal to 10000. Or use command
'ant sendloanreq3' to send an amount greater than 20000, which will result
in a fault from the approver service. To generate a fault from the BPEL
process directly, use 'ant sendloanreq4', to send a request with an amount
of zero.

NOTE: The "ant deploy" command will by default deploy version 1 of the
example to the server. If you wish to change the example, and redeploy,
then you will need to update the version number in the build.xml, or
override the version property, e.g. "ant -Dversion=2 deploy" (and similarly
when undeploying "ant -Dversion=2 undeploy").

Feel free to change the logic in the JAX-WS implemented services and re-deploy
the example to see the effects.

Some handy URLs:
http://localhost:8080/bpel-console is the BPEL console
http://localhost:8080/Quickstart_bpel_loan_approvalWS?wsdl is the URL to the BPEL process' WSDL
http://localhost:8080/Quickstart_bpel_loan_approval/LoanApproval?wsdl is the URL to the Loan Approval service
http://localhost:8080/Quickstart_bpel_loan_approval/RiskAssessment?wsdl is the URL to the Risk Assessment service
