Exercise 2 (a): Add BDM to Bonita studio

This exercise is about defining the Data Model within Bonita Studio and then accessing this data model within the DF-BPMN tool.

Add data objects

Follow the next steps to add the UML objects within the BDM:
  1. Click on bom.xml in the Business Data Model

  2. Select a package (you can also add your own packages).

  3. Click on 'Add Object'

  4. Change the name of the object, and then define its attributes and their types.



Add UML objects to the DBM

Follow the steps described above to add UML objects to the BDM.


Add data information to the DBM

In this exercise, we assume that the suppliers are already stored in the BDM (database). Therefore, you need to add them manually to the database.
  1. Right-click on the 'bom.xml' file in the BDM. Then, select 'Browse data (h2 console) ...'.

  2. The database should automatically open in the browser. Double-click on 'Supplier', then click 'RUN'. After that, click 'Edit' to modify the database table and start adding information.

  3. Click on the '+' icon and add new suppliers (2 or 3).



Access the DBM in the DF-BPMN tool



After creating BDM objects, you should create a reference of the database within DF-BPMN tool. This reference can help you to access the objects within DF-BPMN tool during the modeling phase (when you use data store objects).

  1. Open the DF-BPMN tool: http://localhost:3000/#/usr/src/app/workspace

  2. Open your project in the DF-BPMN tool by double-clicking on the project file.

  3. Click on the white space, and then open the property panel.

  4. Click on 'Bonita Integration,' and then select your Bonita project based on its name, which is the last folder in the path. For example, 'hr_salary_calculation' is an example of a Bonita project name.

  5. Save your project (Ctrl + S) and refresh your browser. Now, during modeling, you can access the data objects by their names and attributes.


Next Exercise