Import BDM

Hi
When is it exactly necessary to export and import the Business Data Model during building an application and how can we import the BDM in Production portal?
Thank you

Hi

When is it exactly necessary to export and import the Business Data Model during building an application

When there are any changes to the BDM, ie. when you add/remove/edit a business object, object’s property, queries etc. Changes in the BDM affect your production database (adding/removing tables/columns/constraints) so if you forget to import new BDM into production and deploy a process which uses changed objects then you’ll finish with errors.

how can we import the BDM in Production portal

  1. Export BDM in Bonita Studio:
    a) In menu go to Development > Business Data Model > Export
    b) Choose destination path and bonita will generate bdm.zip file for you
  2. Log in to production portal as a technical user (login “install”)
  3. In the first tab (“BPM services”) click Pause
    This will end any session and log out every user. You need to do that because you don’t want anyone to read/write to database while bonita is changing its scheme.
  4. When services are paused switch to “Business Data Model” tab, upload bdm.zip file and click Activate. This should show you a “Success” popup.
  5. If everything is ok run BPM services again. Now you can log into portal as admin and install new processes.