Getting Started Guide
The Getting Started Guide for Red Hat JBoss BRMS
Abstract
Chapter 1. Quick start with Red Hat JBoss BRMS
Procedure 1.1. Red Hat JBoss BRMS Quick Start
- Download JBoss BRMS installer from access.redhat.com.
- Run installer by executing the following command:
java -jar jboss-brms-6.2.0.GA-installer.jar - Step through the GUI installer steps making note of the username/password for accessing the JBoss BRMS application after installation.
- After successful installation, in a command prompt, navigate to the EAP home folder where you have installed JBoss BRMS.
- Start the JBoss BRMS server by issuing the following command.
bin/standalone.sh - Open a web browser and login to Business Central by navigating to
http://localhost:8080/business-central/. Login using the username/password combination for accessing the JBoss BRMS application that you created at installation time.
| Learn more about roles: Section 2.4, “Defining Roles” |
| Create additional users: Section 2.5, “Creating users” |
| Create a Hello World Rule: Chapter 4, Hello World Rule Example |
| Look up detailed installation instructions for using the installer: Installation Guide |
Chapter 2. Installation
2.1. Downloading Red Hat JBoss BRMS for JBoss EAP
- Go to the Red Hat Customer Portal and log in.
- Click → .
- In the Product Downloads page that opens, click Red Hat JBoss BRMS.
- From the Version drop-down menu, select version 6.2.0.
- Select Red Hat JBoss BRMS 6.2.0 Deployable for EAP 6 and then click Download.
2.2. Installing Red Hat JBoss BRMS for Red Hat JBoss Enterprise Application Platform
Important
Installation on a fresh EAP instance
- Move the downloaded zip archive to the parent directory of the Red Hat JBoss Enterprise Application Platform home directory (EAP_HOME; the
jboss-eap-6.4directory). - Unzip the downloaded zip archive: make sure it is merged into the EAP_HOME directory (
jboss-eap-6.4).Warning
This step must be performed by the same user account that was used to install EAP. This account must not be a superuser account. - It is necessary to overwrite the files that already exist in the EAP_HOME directory with their versions from the downloaded zip archive. When prompted to do so, accept overwriting the original files.
Installation on an existing EAP configuration
Warning
- Download the zip archive and prepare to manually merge files into the Red Hat JBoss Enterprise Application Platform home directory (EAP_HOME; the
jboss-eap-6.4directory). - Unzip the downloaded zip archive; however, do not overwrite all of the files. Manually merge the following files into the EAP_HOME directory (
jboss-eap-6.4):jboss-eap-6.4/domain/configuration/*jboss-eap-6.4/standalone/configuration/*jboss-eap-6.4/modules/layers.confjboss-eap-6.4/bin/product.conf
Warning
Make sure this step is performed by the same user account that was used to install EAP. This account must not be a superuser account. - Ensure the target EAP does not include a deployment with a colliding name. Copy the folder
jboss-eap-6.4/standalone/deploymentsinto the EAP_HOME directory from the JBoss BRMS distribution. - Make sure no EAP module layer is already called JBoss BRMS and copy the folder
jboss-eap-6.4/modules/system/layers/brmsinto the EAP 6.4 folder.
2.3. Installing Red Hat JBoss BRMS on Red Hat JBoss Web Server
Note
Procedure 2.1. Installing the Generic Deployable Package
Download and Extract
To download the generic deployable package zip file from the Red Hat Customer Support Portal, go to https://access.redhat.com and log in.- Click .
- In the Product Downloads page that opens, click Red Hat JBoss BRMS.
- From the Version drop-down menu, select version 6.2.0.
- Select Red Hat JBoss BRMS 6.2.0 Deployable for All Supported Containers package and then click Download.Also select and download the Red Hat JBoss BRMS Core Engine files.
- Extract
business-central.warandkie-server.warfrom the generic deployable archive and copy totomcat7/webapps/folder. - Remove the
.warextensions from thebusiness-central.warandkie-serverfolders. - Move the
kie-tomcat-integration-VERSION.jarfile frombusiness-central/WEB-INF/libin JBoss BRMS distribution totomcat7/lib. Setup Users
Define the users and the roles intomcat7/conf/tomcat-users.xmlas shown below. Make sure that username and roles do not conflict. For example, you should not create a user with the username ofadminas that is a defined role. See Section 2.4, “Defining Roles” for a list of defined roles.<role rolename="admin"/> <role rolename="analyst"/> <user username="user" password="password" roles="admin,analyst"/>
Install the transaction manager.
Warning
Please note that the following section describes the setup of a transaction manager, Bitronix that is not officially supported by Red Hat.Copy the following transaction manager jar libraries from thelibfolder to$TOMCAT_DIR/lib/directory:- btm-VERSION.jar
- btm-tomcat55-lifecycle-VERSION.jar
- jta-VERSION.jar
- slf4j-api-VERSION.jar
- slf4j-jdk14-VERSION.jar
In addition, download the following library and copy it into the$TOMCAT_DIR/lib/folder as well:- Create the transaction manager configuration files in
$TOMCAT_DIR/conf/:- btm-config.properties
bitronix.tm.serverId=tomcat-btm-node0 bitronix.tm.journal.disk.logPart1Filename=${btm.root}/work/btm1.tlog bitronix.tm.journal.disk.logPart2Filename=${btm.root}/work/btm2.tlog bitronix.tm.resource.configuration=${btm.root}/conf/resources.properties - resources.properties (the resource.ds1.uniqueName defines the datasource name used in tomcat resource definition later - make a note of this value).
Example 2.1. H2 datasource definition
resource.ds1.className=bitronix.tm.resource.jdbc.lrc.LrcXADataSource resource.ds1.uniqueName=jdbc/jbpm resource.ds1.minPoolSize=10 resource.ds1.maxPoolSize=20 resource.ds1.driverProperties.driverClassName=org.h2.Driver resource.ds1.driverProperties.url=jdbc:h2:file:~/jbpm resource.ds1.driverProperties.user=sa resource.ds1.driverProperties.password= resource.ds1.allowLocalTransactions=true
Example 2.2. MySQL 5.5 datasource definition
resource.ds1.className=com.mysql.jdbc.jdbc2.optional.MysqlXADataSource resource.ds1.uniqueName=jdbc/jbpm resource.ds1.minPoolSize=0 resource.ds1.maxPoolSize=10 resource.ds1.driverProperties.URL=jdbc:mysql://localhost:3306/sampledb resource.ds1.driverProperties.user=dbuser resource.ds1.driverProperties.password=dbpassword resource.ds1.allowLocalTransactions=true
Example 2.3. DB2 Type 4 datasource definition
resource.ds1.className=com.ibm.db2.jcc.DB2Driver resource.ds1.uniqueName=jdbc/jbpm resource.ds1.minPoolSize=0 resource.ds1.maxPoolSize=10 resource.ds1.driverProperties.URL=jdbc:db2://localhost:50000/sampledb resource.ds1.driverProperties.user=dbuser resource.ds1.driverProperties.password=dbpassword resource.ds1.allowLocalTransactions=true
Example 2.4. Oracle datasource definition
resource.ds1.className=oracle.jdbc.xa.client.OracleXADataSource resource.ds1.uniqueName=jdbc/jbpm resource.ds1.minPoolSize=0 resource.ds1.maxPoolSize=10 resource.ds1.driverProperties.URL=jdbc:oracle:thin:@//localhost:1521/bpms resource.ds1.driverProperties.user=dbuser resource.ds1.driverProperties.password=dbpassword resource.ds1.allowLocalTransactions=true
Example 2.5. Microsoft SQL Server datasource definition
resource.ds1.className=com.microsoft.sqlserver.jdbc.SQLServerDriver resource.ds1.uniqueName=jdbc/jbpm resource.ds1.minPoolSize=0 resource.ds1.maxPoolSize=10 resource.ds1.driverProperties.URL=jdbc:sqlserver://localhost:1433;databaseName=bpms; resource.ds1.driverProperties.user=dbuser resource.ds1.driverProperties.password=dbpassword resource.ds1.allowLocalTransactions=true
Install the Driver to Your Database
Copy the jar file with the relevant database driver to$TOMCAT_DIR/lib/.Note
If using the embedded H2 database, the driver is available inbusiness-central/WEB-INF/lib/.Start Server and Test
Start JBoss Web Server by runningstartup.shin thetomcat7/bindirectory../startup.sh
Wait a few minutes and check the server log ($TOMCAT_DIR/tomcat7/logs) for any errors. If there are no errors, proceed to the next step.- Navigate to http://localhost:8080/business-central in a web browser.
- Login with the username/password defined in the
tomcat-users.xmlfile.
2.4. Defining Roles
- admin: The users with admin role are the administrators of the application. Administrators can manage users, manage the repositories (create and clone) and have full access to make the required changes in the application. Admins have access to all areas within the system.
- analyst: An analyst role has access to all high-level features to model projects. However, → access is unavailable to users with the analyst role. Certain lower-level features targeted towards developers, like the → view are not accessible for this role. However, the Build & Deploy button is available for the analyst role while using the Project Editor.
Note
2.5. Creating users
- Run ./add-user.sh on a Unix system or add-user.bat on a Windows system from the bin directory.
- Enter b to select an Application User at the type of user prompt and press Enter.
- Accept the default Realm (ApplicationRealm): by pressing Enter.
- At the username prompt, enter a user name and confirm. For example:
helloworlduser.Note
Make sure that the usernames don't conflict with any known groups. For example, if there is a group calledadmin, you should not create a user with the usernameadmin. - Create the user's password at the password prompt and reenter the password. For example:
Helloworld@123.Note
The password should be at least 8 characters in length and should contain upper and lower case alphabetic characters (e.g. A-Z, a-z), at least one numerical character (e.g. 0-9) and at least one special character (e.g. ~ ! @ # $ % ^ * ( ) - _ + =). - Enter a comma separate list of roles the user will need at the roles prompt (refer to Section 2.4, “Defining Roles”).Business Central users need to have the
analystor theadminrole. - Confirm you want to add the user.
- Enter yes at the next prompt (this is to enable clustering in the future if required).
2.6. Starting the Server
Note
standalone.sh that Red Hat JBoss BRMS ships with is optimized for performance. To run your server in the performance mode, do the following:
- On the command line, move into the
$SERVER_HOME/bin/directory. - In a Unix environment run:
./standalone.sh
In a Windows environment run:./standalone.bat
standalone-secure.sh that is optimized for security. This script applies a security policy by default that protects against a known security vulnerability.
Note
standalone-secure.sh script.
Warning
- On the command line, move into the
$SERVER_HOME/bin/directory. - In a Unix environment run:
./standalone-secure.sh
In a Windows environment run:./standalone-secure.bat
Note
standalone-secure.sh script.
Note
domain.sh and domain-secure.sh respectively.
2.7. Java Security Manager and Performance Management
- In high load environments where performance is critical it is recommended to only deploy applications that have been developed on other systems and properly reviewed. It is also recommended not to create any users with Analyst role on such systems. If these safeguards are followed, it is safe to leave JSM disabled on these systems so it does not introduce any performance degradation.
- In testing and development environments without high loads, or in environments where rule and process authoring is exposed to external networks, it is recommended to have JSM enabled in order to achieve security benefits of properly sandboxed evaluation of MVEL.
Chapter 3. Logging on to Business Central
- Navigate to http://localhost:8080/business-central in a web browser. If the user interface has been configured to run from a domain name, substitute
localhostfor the domain name. For example http://www.example.com:8080/business-central. - Log in with the user credentials that were created during installation. For example: User =
helloworlduserand password =Helloworld@123.
Chapter 4. Hello World Rule Example
Hello World project with a simple business rule.
- Create a repository in the Artifact repository.
- Create a project.
- Create a rule.
- Create a knowledgebase.
- Build and deploy the project.
- Create a Maven project to fire the rule.
4.1. Create Your First Rule Using Business Central
Ensure that you have successfully installed JBoss BRMS and Maven before you run this simple rule example using Business Central interface.
Procedure 4.1. Create and Execute your First Rule using Business Central
Log into Business Central
- On the command line, change into the
$SERVER_HOME/bin/directory and execute the following command:- for Unix environment:
./standalone.sh
- for Windows environment:
./standalone.bat
- Once your server is up and running, open the following address in a web browser:
http://localhost:8080/business-central
This opens the Business Central login page. - Log into the Business Central with the user credentials created during installation.
Create a repository structure and create a project under it
- On the main menu of Business Central, go to → .
- Click → , then click .
- In the displayed Add New Organizational Unit dialog box, define the unit properties. For example:
- Name: EmployeeWage
- Owner: Employee
Click . - On the perspective menu, click → .
- In the displayed Create Repository dialog box, define the repository properties. For example:
- Repository Name: EmployeeRepo
- Organizational Unit: EmployeeWage
Click . - Go to → .
- In the Project Explorer, under the organizational unit drop-down box, select
EmployeeWage, and in the repository drop-down box selectEmployeeRepo. - On the perspective menu, go to → .
- In the displayed Create new Project dialog box, provide a name (for example,
MyProject) for your project properties and click . - In the New Project dialog box, define the maven properties of the project. For example:
- Group ID: org.brms
- Artifact ID: MyProject
- Version ID: 1.0.0
Click .
Create a fact model
- On the perspective menu, go to → .
- In the displayed Create new Data Object dialog box, provide the values for object name and package. For example:
- Data Object: Person
- Package: org.brms.myproject
Click . - In the displayed Person window of the newly created
Persondata object, click to open the New field dialogue. Add a variable name in the Id field, select data type for the variable in the Type field, and click until you have defined all the necessary variables. For example:- Id: firstNameType: String
- Id: lastNameType: String
- Id: hourlyRateType: Integer
- Id: wageType: Integer
Click for the last variable and then .
Create a rule
- On the perspective menu, click → .
- In the Create new dialog box, provide the name and package name of your rule file. For example:
- DRL file name:
MyRule - Package: org.brms.myproject
Click . - In the displayed DRL editor with the
MyRule.drlfile, write your rule as shown below:package org.brms.myproject; rule "MyRule" when Person(hourlyRate*wage > 100) Person(name : firstName, surname : lastName) then System.out.println( "Hello" + " " + name + " " + surname + "!" ); System.out.println( "You are rich!" ); end
- Click .
Rules are simple when-then statements stored in DRL files. This example has two conditions:Person(hourlyRate*wage > 100)
Person(name : firstName, surname : lastName)
The first line evaluates a logical condition. The second line searches for an instance of the data object Person and saves its attributes, that is, the firstName and lastName into variables used in the second part of the rule.If the conditions are met, the then part of the rule executes. In this example, two lines will be printed out in the JBoss BRMS command line.Create a Knowledge Base
Following steps demonstrate how to create your own knowledge base. For more information about KieSession, see Chapter 16.2.3 from the Red Hat JBoss BPM Suite Development Guide.- Click .
- Navigate to the drop-down menu and click → .
- Click and enter the name of your knowledge base. For this example, enter:
myBase. - Click
- Click under Packages.
- In this step, you are specifying which packages should your knowledge base include. In this example, we want all the packages. Therefore, enter
*(an asterisk). - Click under Knowledge Sessions.
- Enter the name of your session. For example,
mySession. Check and select thestatelessstate. - Click in the top right corner.
Build and deploy your rule
- Click and then click .A green notification appears in the upper part of the screen informing you that the project has been built and deployed successfully to the Execution Server.
Note
In case a red notification appears, informing you that the build has failed, you will be presented with information about the build failure in the JBoss BRMS console. This is crucial information in case of troubleshooting your application. Make sure you have saved all assets before attempting to build your project.
4.2. Setting Up a Decision Server
- How to register a decision server
- How to add a new container to the decision server
Procedure 4.2. Registering a Decision Server
Creating a User
You will need a new user. Due to a bug, this user needs to be namedkieserver.- In the command line, move into the
$SERVER_HOME/bin/directory and execute the following command:$ ./add-user.sh -a --user kieserver --password kieserver1! --role kie-server
Creating a Decision Server
- On the command line, change into the
$SERVER_HOME/standalone/configurationdirectory and editstandalone.xmlso that it contains the following properties in addition to the properties located in thesystem-propertiestag:<property name="org.kie.server.user" value="helloworlduser"></property> <property name="org.kie.server.pwd" value="Helloworld@123"></property> <property name="org.kie.server.location" value="http://localhost:8080/kie-server/services/rest/server"></property> <property name="org.kie.server.controller" value="http://localhost:8080/business-central/rest/controller"></property> <property name="org.kie.server.controller.user" value="kieserver"></property> <property name="org.kie.server.controller.pwd" value="kieserver1!"></property> <property name="org.kie.server.id" value="local-server-123"></property>
Setting Up Containers
- On the command line, change into the
$SERVER_HOME/bin/directory and execute the following command:./standalone.sh
- In the Business Central, click →
- In the displayed Server Management Browser window, you see
local-server-123. Click on the right. - The Create Container... dialog opens. Enter the following:
- Name:
myContainer - Click and next to
MyProject-1.0.0.jar, click . - Click to create the container.
- Click
to select myContainerand click to start the container
4.3. Firing Rules Using Kie Server Java Client API
Note
Create a Basic Maven Archetype
- Navigate to a directory of your choice in your system and execute the following command:
mvn archetype:generate -DgroupId=com.MyProject.app -DartifactId=my-app -DarchetypeArtifactId=maven-archetype-quickstart -DinteractiveMode=false
- This creates a directory called
my-appwith the following structure:my-app |-- pom.xml `-- src |-- main | `-- java | `-- com | `-- MyProject | `-- app | `-- App.java `-- test `-- java `-- com `-- MyProject `-- app `-- AppTest.java
Import Maven Dependencies
- You must declare the libraries your Maven project will use. Edit the
my-app/pom.xmlfile to set the JBoss BRMS dependencies. Import following dependencies:<dependency> <groupId>org.drools</groupId> <artifactId>drools-compiler</artifactId> <version>6.3.0.Final-redhat-5</version> </dependency> <dependency> <groupId>org.drools</groupId> <artifactId>drools-core</artifactId> <version>6.3.0.Final-redhat-5</version> </dependency> <dependency> <groupId>org.kie.server</groupId> <artifactId>kie-server-api</artifactId> <version>6.3.0.Final-redhat-5</version> </dependency> <dependency> <groupId>org.kie.server</groupId> <artifactId>kie-server-client</artifactId> <version>6.3.0.Final-redhat-5</version> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-simple</artifactId> <version>1.7.13</version> </dependency> <dependency> <groupId>org.brms</groupId> <artifactId>MyProject</artifactId> <version>1.0.0</version> </dependency>
Note
The last dependency is the project you have built in JBoss BRMS. The model class (org.brms.myproject.Personin this example) in the client code, that is your Maven application, needs to match your server side, that is the JBoss BRMS. Otherwise, the rules will not match when sending a request. The easiest way to achieve this is to share the model class between both sides. You achieve this by adding it as a Maven dependency.Therefore, make sure that the following attributes match what you had entered while creating a new project in the Business Central:- groupId
- artifactId
- version
Firing the Rule from TestApp
- Locate the
testAppmethod in themy-app/src/test/java/com/MyProject/app/AppTest.javafile (which is created by default by Maven). - Edit the
AppTest.java:- Add the following imports:
import org.kie.api.command.BatchExecutionCommand; import org.kie.server.api.model.ServiceResponse; import org.kie.server.client.KieServicesClient; import org.kie.server.client.KieServicesConfiguration; import org.kie.server.client.KieServicesFactory; import org.kie.server.client.RuleServicesClient; import org.kie.api.KieServices; import org.kie.api.command.Command; import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Set; import org.brms.myproject.Person; import org.drools.core.command.impl.GenericCommand;
- Locate the
testApp()method, load the knowledge base and fire your rule by adding the following code:Person p1 = new Person(); p1.setFirstName("Anton"); p1.setLastName("RedHat"); p1.setHourlyRate(11); p1.setWage(20); String url = "http://localhost:8080/kie-server/services/rest/server"; String username = "kieserver"; String password = "kieserver1!"; String container = "myContainer"; String session = "mySession"; KieServicesConfiguration config = KieServicesFactory.newRestConfiguration(url, username, password); Set<Class<?>> allClasses = new HashSet<Class<?>>(); allClasses.add(Person.class); config.addJaxbClasses(allClasses); KieServicesClient client = KieServicesFactory.newKieServicesClient(config); RuleServicesClient ruleClient = client.getServicesClient(RuleServicesClient.class); List<GenericCommand<?>> commands = new ArrayList<GenericCommand<?>>(); commands.add((GenericCommand<?>) KieServices.Factory.get().getCommands().newInsert(p1,"Person Insert ID")); commands.add((GenericCommand<?>) KieServices.Factory.get().getCommands().newFireAllRules("fire-identifier")); BatchExecutionCommand batchCommand = KieServices.Factory.get().getCommands().newBatchExecution(commands,session); ServiceResponse<String> response = ruleClient.executeCommands(container, batchCommand); System.out.println(response.getResult());Note that the default marshaller on the server side is JAXB, unless set differently. That means you must set its context with any custom classes you plan to use. In this example, that isPerson.class. Since the example uses astatelesssession, the marshaller is disposed of once a single command is executed. That is why you need to wrap multiple commands in theBatchCommandobject.To change the marshaller type, enter one of the following commands and add theMarshallingFormatimport to your project:config.setMarshallingFormat(MarshallingFormat.JSON);
config.setMarshallingFormat(MarshallingFormat.XSTREAM);
import org.kie.server.api.marshalling.MarshallingFormat;
- Navigate to the
my-appdirectory and execute the following command from the command line:mvn clean install
- Note that there is the Maven output and the JBoss BRMS output. The expected output in the JBoss BRMS console is:
16:26:56,119 INFO [stdout] (http-/127.0.0.1:8080-5) Hello Anton RedHat! 16:26:56,119 INFO [stdout] (http-/127.0.0.1:8080-5) You are rich!
Chapter 5. Red Hat JBoss Developer Studio
Warning
UTF-8. You can do this by editing the $JBDS_HOME/studio/jbdevstudio.ini file and adding the following property: "-Dfile.encoding=UTF-8"
5.1. Installing the JBoss Developer Studio Plug-ins
Procedure 5.1. Install the Drools JBoss Developer Studio Plug-in
- Start JBoss Developer Studio.
- Select → .
- Click Add to enter the Add Repository menu.
- Give the software site a name next to Name field and add the following url in the Location field: https://devstudio.jboss.com/updates/8.0/integration-stack/
- Click OK.
- Select the JBoss Business Process and Rule Development feature from the available options and click Next and then Next again.
- Read the license and accept it by selecting the appropriate radio button, and click Finish.
- After installation of the plug-ins has completed, restart JBoss Developer Studio.
5.2. Setting the Drools runtime
Procedure 5.2. Configure JBoss BRMS Runtime
- Extract the runtime jar files located in the
jboss-brms-VERSION-engine.ziparchive that you can download from Red Hat Customer Portal. - From the JBoss Developer Studio menu, select Window and click Preferences.
- Select → .
- Click Add...; provide a name for the new runtime, and click Browse to navigate to the directory where you extracted the runtime files in step 1. Click OK to register the selected runtime in JBDS.
- Mark the runtime you have created as the default Drools runtime by clicking on the check box next to it.
- Click OK. If you have existing projects, a dialog box will indicate that you have to restart JBoss Developer Studio to update the Runtime.
5.3. Configuring the JBoss BRMS Server
Procedure 5.3. Configure the Server
- Open the Drools view by selecting → → and select Drools and click OK.
- Add the server view by selecting → → and select → .
- Open the server menu by right clicking the Servers panel and select → .
- Define the server by selecting → and clicking Next.
- Set the home directory by clicking the Browse button. Navigate to and select the installation directory for JBoss EAP 6.4 which has JBoss BRMS installed.
- Provide a name for the server in the Name field, make sure that the configuration file is set, and click Finish.
5.4. Importing Projects from a Git Repository into JBoss Developer Studio
Note
Procedure 5.4. Cloning a Remote Git Repository
- Start the Red Hat JBoss BRMS/BPM Suite server (whichever is applicable) by selecting the server from the server tab and click the start icon.
- Simultaneously, start the Secure Shell server, if not running already, by using the following command. The command is Linux and Mac specific only. On these platforms, if sshd has already been started, this command fails. In that case, you may safely ignore this step.
/sbin/service sshd start
- In JBoss Developer Studio, select → and navigate to the Git folder. Open the Git folder to select and click .
- Select the repository source as and click .
- Enter the details of the Git repository in the next window and click .

Figure 5.1. Git Repository Details
- Select the branch you wish to import in the following window and click .
- To define the local storage for this project, enter (or select) a non-empty directory, make any configuration changes and click .
- Import the project as a general project in the following window and click . Name the project and click .
Procedure 5.5. Importing a Local Git Repository
- Start the Red Hat JBoss BRMS/BPM Suite server (whichever is applicable) by selecting the server from the server tab and click the start icon.
- In JBoss Developer Studio, select → and navigate to the Git folder. Open the Git folder to select and click .
- Select the repository source as and click .

Figure 5.2. Git Repository Details
- Select the repository that is to be configured from the list of available repositories and click .
- In the dialog that opens, select the radio button from the and click . Name the project and click .

Figure 5.3. Wizard for Project Import
5.5. Creating a Drools Project
Procedure 5.6. Creating a New Red Hat JBoss Developer Studio Project
- From the main menu, select → → .Select → and click Next.
- Enter a name for the project into the Project name: text box and click Next.
Note
JBoss Developer Studio provides the option to add a sample HelloWorld Rule file to the project. Accept this default by clicking Next to test the sample project in the following steps. - Select the Drools runtime (or use the default).
- Select code compatible with Drools 6.0.x. Enter a GroupID, an ArtifactID, and Version, and click Finish.
- To test the project, right click the Java file that contains the main method and select → → .The output will be displayed on the console tab.
Chapter 6. Business Resource Planner
- Employee/Patient Rosters. Planner helps create timetables for nurses and keeps track of patient bed management.
- Educational Timetables. Planner helps schedule lessons, courses, exams, and conference presentations.
- Shop Schedules: Planner tracks car assembly lines, machine queue planning, and workforce task planning.
- Cutting Stock: Planner minimizes waste by reducing the consumption of resources such as paper and steel.
6.1. Installing Business Resource Planner
- Navigate to the Red Hat Customer Portal and log in with your user credentials.
- Select → .
- In the Product Downloads page that opens, click Red Hat JBoss BRMS.
- From the Version drop-down menu, select version 6.2.0.
- Select Red Hat JBoss BRMS 6.2.0 Business Resource Planner and then click Download.
6.2. Running the Business Resource Planner Examples
- On the command line, move into the
examples/directory. - In a Unix environment, run the following command:
./runExamples.sh
In a Windows environment, run the following command:./runExamples.bat
- Pick an example from the Examples GUI application that opens and run it in your favorite IDE.
Appendix A. Revision History
| Revision History | |||
|---|---|---|---|
| Revision 6.2.0-7 | Fri Apr 21 2017 | ||
| |||
| Revision 6.2.0-6 | Wed Apr 19 2017 | ||
| |||
| Revision 6.2.0-5 | Thu Apr 28 2016 | ||
| |||
| Revision 6.2.0-4 | Tue Mar 29 2016 | ||
| |||
| Revision 6.2.0-3 | Mon Nov 30 2015 | ||
| |||
| Revision 6.2.0-2 | Mon Nov 30 2015 | ||
| |||
| Revision 6.2.0-1 | Mon Nov 30 2015 | ||
| |||
