How to install Drool Business Central Workspace and kie server in local environment

Priyal Vyas
5 min readJul 9, 2023

--

Introduction

Drool is free and open source software. It is written entirely in JavaTM, runs on any JVM, and is also available in the Maven Central repository.
In this article, we will install Drool Workbench 7.73.0 on a Wildfly server.
Let’s start by downloading and installing all of the necessary software.

JAVA INSTALLION

1.DOWNLOAD JAVA

Java 8 is required. We can get it from the official website at https://www.oracle.com/in/java/technologies/downloads/#java8-windows.

2. SET UP PATH
Set the JAVA_HOME environment variable to the path of the downloaded folder.

Add JAVA_HOME to the system variable

Add path to the Path variable under System Variable

Also , we need to set JAVA_OPTS IN the environment variable.

JAVA_OPTS = -Xms128m -Xmx2048m -XX:MetaspaceSize=512M -XX:MaxMetaspaceSize=1024m

once Java is set, we can verify using this command in CMD

2. DOWNLOAD WILDFLY

Let us download Wildfly 20.0.0 Final From The Official Website Link Below.

3. DOWNLOAD BUSINESS CENTRAL AND KIE SERVER WAR FROM THE OFFICAL WEBSITE LINK BELOW.

From Latest 7.x version: 7.73.0.Final, download the following:

After downloading, unzip the files. Place all files in one folder and rename them as shown in the image below.

Wildfly is a server that hosts Business Central and Kie Server.
In order to use the war file. To begin, we require a management user to deploy.
So, let’s set up a management server.
Navigate to the bin folder and look for add-user. Open that file and add the following information:

Choose Management user

Username: kieadmin [You can give any]

Password: kieadmin [You can give any]

Group :-admin

Now Lets create two Application users: one for business central and other for the Kie server

Choose Application user

Username : kieuser

Password: kieuser

Group: admin, kie-server, rest-all

add above details and for every yes or no , put yes or y

Choose Application user

Username : kie

Password : kie

Group : kie-server

add above details and for every yes/no , put yes or y

Now that management and application users are created, lets start the server

Navigate to bin in cmd and run the command standalone.sh -c standalone-full.xml.

In browser , open and navigate to this link HAL Management Console

Login as a management user.

After login, Navigate to deployment Tab and deploy the business central and kie-server war files.

Similarly, deploy Kie-server war file

Make sure both kie-server and business central are enabled after deployment.

Now we need to set System properties in Wildfly.

Navigate to Configuration > System Properties and enter all of the following information:

org.kie.server.controller.pwd : kieuser
org.kie.server.controller.user : kieuser
org.kie.server.pwd : kie
org.kie.server.user : kie
org.kie.server.location :http://localhost:8080/kie-server/services/rest/server
org.kie.server.controller : http://localhost:8080/business-central/rest/controller
org.kie.server.id :default-kie-server

After adding system properties, please restart the workbench.

Login again with application user [kieuser] and click on the URL:- http://localhost:8080/business-central/kie-wb.jsp and login with application user [kieuser in our case]

Please Click on Deploy option to see whether kie-server is deployed or not.

We have multiple options in design to make rules, and with the help of kie-server, which we deployed, we can run and test rules from Postman.

In the next article ( link ), Please refer to how to invoke a rule in the workbench from Postman or Swagger.

--

--