Quickstart Examples - Level 3 - Order Management
================================================

This example demonstrates the use of a BPEL to coordinate an order management
process. Each order has a particular stateful workflow, requiring the use
of correlation to direct relevant invocations to the appropriate BPEL process
instance that is managing the order.

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'.

This example uses a database to manage the orders. Therefore before being able
to create and manage individual orders, we first need to prepare the database.
This is achieved using the following command:

	ant preparedb

At any point you will be able to view the current list of orders, and their
status, using the following command:

	ant getOrders

To create a new order, use the following command:

	ant sendorder

which will create an order in the database and return the id in the command
response. Then the final step is to approve or reject the order using the
following command:

	ant sendapprove -Did=<order id> -Dapproved=true|false

So if the order id in the response was 23, and you want to reject the order,
you would perform the command:

	ant sendapprove -Did=23 -Dapproved=false	

Don't forget to use the 'ant getOrders' command to review the orders in the
database at different times.

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").

Some handy URLs:
http://localhost:8080/bpel-console is the BPEL console
http://localhost:8080/orderingWS?wsdl is the URL to the BPEL process' WSDL
