Bonita + Jelastic: Business Process Management in the Cloud

Here's a detailed tutorial on how to deploy Bonita Open Solution, an open source business process management (BPM) and workflow suite, to Jelastic cloud. This great application can be used for creating high-tech workflows and spreadsheets. BPM with Bonita Open Solution offers numerous advantages and benefits for your organization such as: testing of different process models to optimization of your processes, realization of immediate benefits of process automation, making your business processes visible, monitoring your business in real-time, communication improving and increasing of your organization's productivity.

  1. Create an environment
    1. Log into the
      Jelastic Manager
    2. While in Jelastic dashboard, click the Create environment button:


    3. In the Environment topology window select Tomcat 7 as your application server and MySQL as a database, type your environment name, for example, bonita, and click Create.


    4. Wait just a minute for your environment to be created.


  2. Upload Java package
    1. Go to bonitasoft.com and download Bonita Tomcat bundle.




    2. Extract the files from the zip package you have just downloaded.
    3. Switch to Jelastic and upload bonita.war file (BOS-5.9.1-Tomcat-6.0.35/webapps/bonita.war) to the Deployment manager.


    4. After the upload is complete deploy this package to the environment you have created earlier.


  3. Configure database
    1. Click Open in browser button for MySQL.


    2. While you were creating the environment, Jelastic sent you an email with credentials to the database. Log in using these credentials and create two databases: bonita_journal and bonita_history.


  4. Configure Bonita
    1. Click Config button for Tomcat and upload MySQL connector to the lib folder.


    2. Then upload all jar files from bonita folder (BOS-5.9.1-Tomcat-6.0.35/lib/bonita) to the Tomcat's lib folder. But notice: you can upload only 20 files at ones, so you have to divide all these jars into several parts and upload them in turns.


    3. Open the context.xml file (server/context.xml) and set the database configuration.
    4. <Context>
       <!-- Sample to use with MySQl --> 
       <Resource name="bonita/default/journal" 
                 auth="Container" 
                 type="javax.sql.DataSource" 
                 maxActive="100" 
                 minIdle="10" 
                 maxWait="10000" 
                 initialSize="1" 
                 maxPoolSize="15" 
                 minPoolSize="3"
                 maxConnectionAge="0"
                 maxIdleTime="1800"
                 maxIdleTimeExcessConnections="120"
                 idleConnectionTestPeriod="30"
                 acquireIncrement="3"
                 testConnectionOnCheckout="true"
                 removeAbandoned="true" 
                 logAbandoned="true" 
                 username="root" 
                 password="your_password"
                 driverClassName="com.mysql.jdbc.Driver" 
                 url="jdbc:mysql://path_to_your_database/bonita_journal"/> <Resource name="bonita/default/history" 
                 auth="Container" 
                 type="javax.sql.DataSource" 
                 maxActive="100" 
                 minIdle="10" 
                 maxWait="10000" 
                 initialSize="1" 
                 maxPoolSize="15" 
                 minPoolSize="3"
                 maxConnectionAge="0"
                 maxIdleTime="1800"
                 maxIdleTimeExcessConnections="120"
                 idleConnectionTestPeriod="30"
                 acquireIncrement="3"
                 testConnectionOnCheckout="true"
                 removeAbandoned="true" 
                 logAbandoned="true" 
                 username="root" 
                 password="your_password"
                 driverClassName="com.mysql.jdbc.Driver" 
                 url="jdbc:mysql://path_to_your_database/bonita_history"/>
      </Context>
      



      Save the changes and restart Tomcat!

  5. Start Bonita
  6. Now you can open Bonita in a web browser, go to default theme and start using it.