Quickstart Examples - Level 1 - Math
============================================

This example is emulating a calculator which can add (+), subtract (-),
multiply (*), divide (/) and calculate power (^). Input for this process
is a operator and two decimal numbers, result is a decimal number.

If process is used to divide numbers and the second one is zero,
the calculateFault arises, with "Division By Zero" text. If an invalid
operator is given, same error with text "Unknown Operator" is thrown.

Power is calculated using a While activity.

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, an example
'math' message can be found in the messages sub-folder, with the
relevant WSDL being located in the bpel sub-folder.

Alternatively, use one of these commands (from a command line window)
to send the message:
	ant math -Dop=add
	ant math -Dop=subtract
	ant math -Dop=multiply
	ant math -Dop=divide
	ant math -Dop=divideByZero
	ant math -Dop=power

For these tests always: a=2, b=4, only for divideByZero b=0

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/MathProcess?wsdl is the URL to the BPEL process' WSDL
