此内容没有您所选择的语言版本。
Chapter 14. Installing Red Hat Decision Manager from ZIP files
The Red Hat Decision Manager ZIP files (one for Business Central and one for KIE Server) do not require a graphical user interface.
You should install Business Central and the KIE Server on different servers in production environments.
For information about installing the headless Decision Manager controller, see Chapter 19, Installing and running the headless Decision Manager controller.
14.1. Installing Business Central from the ZIP file 复制链接链接已复制到粘贴板!
Business Central is a web console that enables you to create, manage, and edit your rules and related assets in a unified web-based environment.
Prerequisites
-
A backed-up Red Hat JBoss EAP installation version 7.3 is available. The base directory of the Red Hat JBoss EAP installation is referred to as
EAP_HOME
. - Sufficient user permissions to complete the installation are granted.
The following file is downloaded as described in Chapter 12, Downloading the Red Hat Decision Manager installation files:
rhdm-7.9.1-decision-central-eap7-deployable.zip
Procedure
-
Extract the
rhdm-7.9.1-decision-central-eap7-deployable.zip
file to a temporary directory. In the following examples this directory is calledTEMP_DIR
. Copy the contents of the
TEMP_DIR/rhdm-7.9.1-decision-central-eap7-deployable/jboss-eap-7.3
directory toEAP_HOME
. When prompted, merge or replace files.WarningEnsure the names of the Red Hat Decision Manager deployments you copy do not conflict with your existing deployments in the Red Hat JBoss EAP instance.
14.2. Installing KIE Server from the ZIP file 复制链接链接已复制到粘贴板!
KIE Server provides the runtime environment for business assets and accesses the data stored in the assets repository (knowledge store).
Prerequisites
-
A backed-up Red Hat JBoss EAP installation version 7.3 is available. The base directory of the Red Hat JBoss EAP installation is referred to as
EAP_HOME
. - Sufficient user permissions to complete the installation are granted.
The following file is downloaded as described in Chapter 12, Downloading the Red Hat Decision Manager installation files:
rhdm-7.9.1-kie-server-ee8.zip
Procedure
-
Extract the
rhdm-7.9.1-kie-server-ee8.zip
archive to a temporary directory. In the following examples this directory is calledTEMP_DIR
. Copy the
TEMP_DIR/rhdm-7.9.1-kie-server-ee8/kie-server.war
directory toEAP_HOME/standalone/deployments/
.WarningEnsure the names of the Red Hat Decision Manager deployments you copy do not conflict with your existing deployments in the Red Hat JBoss EAP instance.
-
Copy the contents of the
TEMP_DIR/rhdm-7.9.1-kie-server-ee8/rhdm-7.9.1-kie-server-ee8/SecurityPolicy/
toEAP_HOME/bin
. When asked to overwrite files, click Replace. -
In the
EAP_HOME/standalone/deployments/
directory, create an empty file namedkie-server.war.dodeploy
. This file ensures that KIE Server is automatically deployed when the server starts.
14.3. Creating users 复制链接链接已复制到粘贴板!
Before you can log in to Business Central or KIE Server, you must create users. This section shows you how to create a Business Central user with the admin
, rest-all
, and kie-server
roles and a KIE Server user that has the kie-server
role. For information about roles, see Chapter 11, Red Hat Decision Manager roles and users.
Prerequisites
-
Red Hat Decision Manager is installed in the base directory of the Red Hat JBoss EAP installation (
EAP_HOME
).
Procedure
-
In a terminal application, navigate to the
EAP_HOME/bin
directory. Create a user with the
admin
,rest-all
, andkie-server
roles.NoteUsers with the
admin
role are Business Central administrators. Users withrest-all
role can access Business Central REST capabilities. Users with thekie-server
role can access KIE Server (KIE Server) REST capabilities.In the following command, replace
<username>
and<password>
with the user name and password of your choice../add-user.sh -a --user <USERNAME> --password <PASSWORD> --role admin,rest-all,kie-server
$ ./add-user.sh -a --user <USERNAME> --password <PASSWORD> --role admin,rest-all,kie-server
Copy to Clipboard Copied! Toggle word wrap Toggle overflow NoteMake sure that the specified user name is not the same as an existing user, role, or group. For example, do not create a user with the user name
admin
.The password must have at least eight characters and must contain at least one number and one non-alphanumeric character, but not & (ampersand).
Create a user with the
kie-server
role that you will use to log in to KIE Server../add-user.sh -a --user <USERNAME> --password <PASSWORD> --role kie-server
$ ./add-user.sh -a --user <USERNAME> --password <PASSWORD> --role kie-server
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Make a note of your user names and passwords.
NoteIf you installed Business Central and KIE Server in the same server instance, you can create a single user that has both of these roles:
./add-user.sh -a --user <USERNAME> --password <PASSWORD> --role admin,rest-all,kie-server
$ ./add-user.sh -a --user <USERNAME> --password <PASSWORD> --role admin,rest-all,kie-server
Copy to Clipboard Copied! Toggle word wrap Toggle overflow You should install Business Central and KIE Server on different servers in production environments.
This section provides a sample setup that you can use for testing purposes. Some of the values are unsuitable for a production environment, and are marked as such.
If a KIE Server is not configured in your Red Hat Decision Manager environment, or if you require additional KIE Servers in your Red Hat Decision Manager environment, you must configure a KIE Server to connect to Business Central.
If you are deploying KIE Server on Red Hat OpenShift Container Platform, see the Deploying a Red Hat Decision Manager environment on Red Hat OpenShift Container Platform using Operators document for instructions about configuring it to connect to Business Central.
Prerequisites
Business Central and KIE Server are installed in the base directory of the Red Hat JBoss EAP installation (
EAP_HOME
) as described in the following sections:Users with the following roles exist:
-
In Business Central, a user with the role
rest-all
On the KIE Server, a user with the role
kie-server
For more information, see Section 14.3, “Creating users”.
-
In Business Central, a user with the role
Procedure
-
In your Red Hat Decision Manager installation directory, navigate to the
standalone-full.xml
file. For example, if you use a Red Hat JBoss EAP installation for Red Hat Decision Manager, go to$EAP_HOME/standalone/configuration/standalone-full.xml
. Open
standalone-full.xml
file and under the<system-properties>
tag, set the following JVM properties:Expand Table 14.1. JVM Properties for Managed KIE Server Instance Property Value Note org.kie.server.id
default-kie-server
The KIE Server ID.
org.kie.server.controller
http://localhost:8080/decision-central/rest/controller
The location of Business Central. The URL for connecting to the API of Business Central.
org.kie.server.controller.user
controllerUser
The user name with the role
rest-all
who can log in to the Business Central.org.kie.server.controller.pwd
controllerUser1234;
The password of the user who can log in to the Business Central.
org.kie.server.location
http://localhost:8080/kie-server/services/rest/server
The location of the KIE Server. The URL for connecting to the API of KIE Server.
Expand Table 14.2. JVM Properties for Business Central Instance Property Value Note org.kie.server.user
controllerUser
The user name with the role
kie-server
.org.kie.server.pwd
controllerUser1234;
The password of the user.
Example for KIE Server Instance:
<property name="org.kie.server.id" value="default-kie-server"/> <property name="org.kie.server.controller" value="http://localhost:8080/decision-central/rest/controller"/> <property name="org.kie.server.controller.user" value="controllerUser"/> <property name="org.kie.server.controller.pwd" value="controllerUser1234;"/> <property name="org.kie.server.location" value="http://localhost:8080/kie-server/services/rest/server"/>
<property name="org.kie.server.id" value="default-kie-server"/> <property name="org.kie.server.controller" value="http://localhost:8080/decision-central/rest/controller"/> <property name="org.kie.server.controller.user" value="controllerUser"/> <property name="org.kie.server.controller.pwd" value="controllerUser1234;"/> <property name="org.kie.server.location" value="http://localhost:8080/kie-server/services/rest/server"/>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Example for Business Central Instance:
<property name="org.kie.server.user" value="controllerUser"/> <property name="org.kie.server.pwd" value="controllerUser1234;"/>
<property name="org.kie.server.user" value="controllerUser"/> <property name="org.kie.server.pwd" value="controllerUser1234;"/>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow Send a GET request to
http://SERVER:PORT/kie-server/services/rest/server/
and verify the successful start of the KIE Server. Once authenticated, you receive an XML response similar to the following example:Copy to Clipboard Copied! Toggle word wrap Toggle overflow Verify the successful registration:
- Log in to Business Central.
Click Menu
Deploy Execution Servers. If registration is successful, you can see the registered server ID.