Show Table of Contents
Chapter 5. Hello World rule example
To demonstrate basic features of JBoss BRMS, this example will instruct you on how to set up the
Hello World project with a Hello World business rule.
You will be instructed to do the following:
- Create a Hello World repository in the Artifact repository.
- Create the Hello World Project.
- Create the Hello World rule.
- Build and deploy the project.
5.1. Creating repository structure
All business assets live in repositories that live in Organizational Units, which are directories in the Artifact repository. By default, the Artifact repository does not contain any organizational units. Therefore to be able to create your own business assets, you need to create an organizational unit in the Artifact repository and a (Git) repository in it. The repository can then contain your Project. A project can contain an arbitrary package structure, which allows you to structure its content into logical "directory" structure. Any package can contain your business assets (for more information on the Artifact repository, refer to the Red Hat JBoss BRMS User Guide).
To create the repository structure, do the following:
- Open Business Central in your web browser (if running locally http://localhost:8080/business-central) and log in as a user with the
adminrole (helloworlduser). - Create an organizational unit in the Artifact repository:
- Go to → .
- On the perspective menu, click → .
- In the displayed Organizational Unit Manager view, click .In the displayed Add New Organizational Unit dialog box, define the unit properties and click :
- Name:
helloworld - Owner:
helloworlduser
- Create a new repository in the helloworld organizational unit:
- Go to → .
- On the perspective menu, click → .
- In the displayed Create Repository dialog box, define the repository properties:
- Repository Name:
helloworldrepo - Organizational Unit:
helloworld
- Go to → .
- In the Project Explorer in the organizational unit drop-down box, select
helloworld, and in the repository drop-down box selecthelloworldrepo.
Figure 5.1. Selecting the
helloworldreporepository in thehelloworldorganizational unit in Project Explorer - Create a project in the
helloworldrepository:- On the perspective menu, go to →
- In the displayed Create new dialog box, define your Project properties:
- Resource Name (project name):
HelloWorld - Path:
default://master@helloworldrepo/
- In the New Project Wizard dialog, define the maven properties of the Project. Press Enter after making each entry:
- Group ID:
org.brms - Artifact ID:
HelloWorld - Version ID:
1.0
- Click .

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.