Chapter 4. Hello World Project
To demonstrate basic features of Red Hat JBoss BPM Suite, this chapter will instruct you on how to set up the Hello World project with a Hello World business process. All that this business process will do, is display the Hello World!
message and finish execution. For additional example that makes use of the full when-then rule functionality, see the Getting Started with Rules and Facts chapter from Red Hat JBoss BPM Suite Development Guide.
You will be instructed to do the following:
- Create a Hello World repository in the Artifact repository.
- Create the Hello World project with the Hello World business process definition.
- Model the Hello World process logic in the business process using the graphical Process Designer tool.
- Build and deploy the project on the locally running Execution Engine.
- Run the Hello World process.
- Monitor the process execution.
4.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, such as a business process, 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, see the Red Hat JBoss BPM Suite User Guide).
To create the repository structure, do the following:
-
Open Business Central in your web browser and log in as a user with the
admin
role (for examplehelloworlduser
). Create an organizational unit in the artifact repository:
- Go to Authoring → Administration.
- On the perspective menu, click Organizational Units → Manage Organizational Units.
In the displayed Organizational Unit Manager view, click Add.
In the displayed Add New Organizational Unit dialog box, define the unit properties and click Ok:
-
Name:
helloworld
-
Owner:
helloworlduser
-
Name:
Create a new repository in the
helloworld
organizational unit:- Go to Authoring → Administration.
- On the perspective menu, click Repositories → New repository.
In the displayed New Repository dialog box, define the repository properties:
-
Repository Name:
helloworldrepo
-
Organizational Unit:
helloworld
-
Repository Name:
- Click Finish.
- Go to Authoring → Project Authoring.
In the Project Explorer in the organizational unit drop-down box, select
helloworld
, and in the repository drop-down box selecthelloworldrepo
.Figure 4.1. Selecting the helloworldrepo Repository in the helloworld Organizational Group in Project Explorer
Create a project in the
helloworld
repository:- On the perspective menu, go to New Item → Project.
In the displayed New Project wizard, define your project properties:
-
Project Name:
HelloWorld
-
Group ID:
org.bpms
-
Artifact ID:
HelloWorld
-
Version ID:
1.0
-
Project Name:
- Click Finish.