The Nova Bonita package contains one example of a XPDL process. This sample is located under examples directory:
The Bonita Simple Project Ever: a simple Approval Workflow process defintion and execution
The build.xml in the root directory contains required targets to complie and launch the example:
The Approval Workflow sample can be run in a in-memory environment. That means, no persistence service will be used to store process definition or instances execution related data.
>ant memory_examples
Same application (Approval Workflow) can be run using the persistence service. Core Process Virtual Machine entities, XPDL extension as well as execution related data will be persisted in a relational database. By default Nova Bonita embeeds HSQL database and uses it as a default database. You can easily change this default configuration and use your favorite database by modifiying the hibernate.properties file located under "conf" directory.
>ant persistence_examples
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