5.3. Running the example

The Nova Bonita package contains one example of a XPDL process. This sample is located under examples directory:

The build.xml in the root directory contains required targets to complie and launch the example:

This sample application leverages the Security, Identity and Human Task services so you must provide a right user login/passwd to run the sample. The default identity module (based on HSQL database) is provided with three users ("John", "Jack" and "James" with passwords "cheese", "beer" and "wine" respectively). All three can login into to system but only John and Jack are able to play in the Approval Workflow sample. This behaviour is due to the users - role mapping defined in the previous workflow sample.

The java sample simply import the xpdl file of the process, then creates a workflow instance and leverage getTodoList, startActivity and terminateActivity methods from the User API

Nova Bonita Milestone 2 unit test suite can also be launched from the root directory:

>ant tests