> For the complete documentation index, see [llms.txt](https://nicolas-heron.gitbook.io/droolsonboarding/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nicolas-heron.gitbook.io/droolsonboarding/brms/data_model.md).

# Data Model

In the previous step we create a Organization Unit and a repository nautic.\
We are now going to create project called swimmingpool.

![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ45b-Est6e1Xuza%2Faction01.png?generation=1580825232752191\&alt=media)

In the New Item select "project"

![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ47Zgpue8P0u40H%2Faction02.png?generation=1580825232712487\&alt=media)\
Enter the data as shown above. The Project general settings view is then displayed.

![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ49AaHgx9KSJKdv%2Faction03.png?generation=1580825232990893\&alt=media)

We want to add a dependency on the pojo/entity java model. So we click as shown below on the "dependencies" menu item.

![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ4BAKQ4uNqC9leW%2Faction04.png?generation=1580825233184437\&alt=media)

We then enter the data as shown below.

![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ4DyErKTmOa3Cu_%2Faction05.png?generation=1580825234740772\&alt=media)\
This is a community project we shall speak later about.

The version you should use now is 2.0.10 and the associate maven project is [here](https://github.com/chtiJBUG/drools-onboarding/tree/master/drools-framework-examples/drools-framework-swimming-pool-model). Then as in our runtime we configured all necessary settings for maven, all is retrieved. The project we use is on maven central.\
The following screen is then displayed.

![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ4FfJ5WQ8POCxqG%2Faction06.png?generation=1580825234188367\&alt=media)

As said in the introduction on BRMS, all dependency are shown.

> Note that in the 6.4.0 version there is a bug. If the workbench is restarted or you quit the editor and re-open it, the list is then empty when you log again. But it is only a display problem as in the repository the dependency is kept.\
> the JIRA is [here](https://issues.jboss.org/browse/GUVNOR-2508). It is corrected in version 6.5.0.

Now we have to say which java entity/classes we want to use in our rules. This is then done as follows.\
![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ4H5jQtsVLZ0luk%2Faction07.png?generation=1580825233575661\&alt=media)\
Then the list looks like this.\
![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ4J3BwEdQshA9Bm%2Faction08.png?generation=1580825233954920\&alt=media)

## Where dependencies and package white list are stored

As said before, in case of a restart of the workbench application, the dependency list is empty.\
In this case, to see the dependency, you set the project explorer mode to repository view as shown below

![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ4LCq5ZpIxeHQmH%2Faction10.png?generation=1580825234601460\&alt=media)\
You can now see how the repository is stored with all files.

![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ4NLeI7V9VshWzy%2Faction11.png?generation=1580825234349300\&alt=media)

Click on the pom.xml file. In the dependency part of the file, you should see what we entered before.

![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ4PuHYilwSoSX0c%2Faction12.png?generation=1580825233777543\&alt=media)\
And in the file package-names-white-list the package we defined allowed to be used in the guided editors.

![](https://2162667257-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-FWW6zn6BoLbrPp_j8%2F-M-FWXeF2rB74vmY-cqZ%2F-M-FWZ4RWg5FjnU2xNhx%2Faction13.png?generation=1580825233416436\&alt=media)
