The Nova Bonita package contains one example of XPDL process under examples directory.
BonitaSimpleProjectEver
The build.xml in the root directory contains the target to launch the example.
>ant examples
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