Use Maven to integrate Bonita Execution Engine easily

Many Bonita Open Solution users find it useful to extend BOS to integrate it with other applications. When doing this, you can use Maven to manage project dependencies. BonitaSoft belongs to OW2, which is an open source software consortium for middleware providers. At each release, we provide updated Maven artifacts in the OW2 repository. This simplifies the development of an application that uses BOS.

Here’s a quick “How-To” for using Maven to handle BOS dependencies

Step 1 : Create a new Maven project in your favorite IDE :)

New Maven Project

New Maven Project

Step 2 : Configure your pom.xml

Double click on your pom.xml file.
  • Add the OW2 Maven repository : Go into the pom.xml tab and add the following code :

Add OW2 Repository

  • You can now add "Bonita" to your dependencies, either by using the Wizard...
    Add Bonita Client Dependency

    Go to Dependencies Tab > Click on Add... > Search for "bonita-client" >Select "org.ow2.bonita bonita-client" entry > Click OK

    (This automatically configures your pom.xml, adding the latest available version of the bonita-client artifact to your project dependencies.)

  • ...or by directly editing the pom.xml file :Add Dependency
You can use the bonita-client artifact if your application needs to make requests to an external server. If your application directly manipulates the database or manages events inside the engine, then use the bonita-server artifact.

You can now easily leverage the BOS API in your application, letting Maven resolve the dependencies.