5.2. Getting started with Bonita APIs

If you are already familiar with previous Bonita versions and you have already developped your own applications on top of Bonita, we want to minimize your effort when migrating to Bonita v4. Compatibility from Bonita v3 to v4 is our main concern. For this milestone Bonita has been packaged as a java library and only plain java interfaces are provided (no session beans interface). Bonita v4 Milestone 2 adds a persistence capabilities at both process definition and execution phases. That means that both in-memory or persistent definition and execution can be leveraged by means of configuration.

There is no workflow server implementation yet. However execution concurrency can be achieved by delegating concurrency access to the database. This behaviour can easily be verified by separating the process import operations (XPDLImport POJO) from the execution calls (UserBean POJO). That way, different users can create and handle different workflow instances from a same process. Database lock policy configuration will be responsible for handling concurrency.

<param>Next Nova Bonita milestone will include a server side version in which User and XPDLImport beans will be exposed as SessionBeans. The whole server will run on top of Tomcat (thanks to the integration with an EJB3 lightweight container).</param>

5.2.1. XpdlImport interface

The XPDLImport facade class provides the following static method:

void    importDocument(final URL ressourceURL, final Environment environment)