此内容没有您所选择的语言版本。
Chapter 5. 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 so you can install Red Hat Decision Manager using SSH.
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 10, Installing and running the headless Decision Manager controller.
5.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.2 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 3, Downloading the Red Hat Decision Manager installation files:
rhdm-7.7.0-decision-central-eap7-deployable.zip
Procedure
-
Extract the
rhdm-7.7.0-decision-central-eap7-deployable.zipfile to a temporary directory. In the following examples this directory is calledTEMP_DIR. Copy the contents of the
TEMP_DIR/rhdm-7.7.0-decision-central-eap7-deployable/jboss-eap-7.2directory 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.
5.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.2 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 3, Downloading the Red Hat Decision Manager installation files:
rhdm-7.7.0-kie-server-ee8.zip
Procedure
-
Extract the
rhdm-7.7.0-kie-server-ee8.ziparchive to a temporary directory. In the following examples this directory is calledTEMP_DIR. Copy the
TEMP_DIR/rhdm-7.7.0-kie-server-ee8/kie-server.wardirectory 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.7.0-kie-server-ee8/rhdm-7.7.0-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.
5.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 2, 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/bindirectory. Create a user with the
admin,rest-all, andkie-serverroles.NoteUsers with the
adminrole are Business Central administrators. Users withrest-allrole can access Business Central REST capabilities. Users with thekie-serverrole 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-serverCopy 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-serverrole 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-serverCopy 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-serverCopy to Clipboard Copied! Toggle word wrap Toggle overflow You should install Business Central and KIE Server on different servers in production environments.
Only make the changes described in this section if KIE Server will be managed by Business Central and you installed Red Hat Decision Manager from the ZIP files. If you did not install Business Central, you can use the headless Decision Manager controller to manage KIE Server, as described in Chapter 10, Installing and running the headless Decision Manager controller.
KIE Server can be managed or it can be unmanaged. If KIE Server is unmanaged, you must manually create and maintain KIE containers (deployment units). If KIE Server is managed, the Decision Manager controller manages the KIE Server configuration and you interact with the Decision Manager controller to create and maintain KIE containers.
The Decision Manager controller is integrated with Business Central. If you install Business Central, you can use the Execution Server page in Business Central to interact with the Decision Manager controller.
If you installed Red Hat Decision Manager from the ZIP files, you must edit the standalone-full.xml file in both the KIE Server and Business Central installations to configure KIE Server with the integrated Decision Manager controller.
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:- Section 5.1, “Installing Business Central from the ZIP file”
Section 5.2, “Installing KIE Server from the ZIP file”
NoteYou should install Business Central and KIE Server on different servers in production environments. However, if you install KIE Server and Business Central on the same server, for example in a development environment, make the changes described in this section in the shared
standalone-full.xmlfile.
On Business Central server nodes, a user with the
rest-allrole exists.For more information, see Section 5.3, “Creating users”.
Procedure
In the Business Central
EAP_HOME/standalone/configuration/standalone-full.xmlfile, uncomment the following properties in the<system-properties>section and replace<USERNAME>and<USER_PWD>with the credentials of a user with thekie-serverrole:<property name="org.kie.server.user" value="<USERNAME>"/> <property name="org.kie.server.pwd" value="<USER_PWD>"/>
<property name="org.kie.server.user" value="<USERNAME>"/> <property name="org.kie.server.pwd" value="<USER_PWD>"/>Copy to Clipboard Copied! Toggle word wrap Toggle overflow In the KIE Server
EAP_HOME/standalone/configuration/standalone-full.xmlfile, uncomment the following properties in the<system-properties>section.<property name="org.kie.server.controller.user" value="<CONTROLLER_USER>"/> <property name="org.kie.server.controller.pwd" value="<CONTROLLER_PWD>"/> <property name="org.kie.server.id" value="<KIE_SERVER_ID>"/> <property name="org.kie.server.location" value="http://<HOST>:<PORT>/kie-server/services/rest/server"/> <property name="org.kie.server.controller" value="<CONTROLLER_URL>"/>
<property name="org.kie.server.controller.user" value="<CONTROLLER_USER>"/> <property name="org.kie.server.controller.pwd" value="<CONTROLLER_PWD>"/> <property name="org.kie.server.id" value="<KIE_SERVER_ID>"/> <property name="org.kie.server.location" value="http://<HOST>:<PORT>/kie-server/services/rest/server"/> <property name="org.kie.server.controller" value="<CONTROLLER_URL>"/>Copy to Clipboard Copied! Toggle word wrap Toggle overflow Replace the following values:
-
Replace
<CONTROLLER_USER>and<CONTROLLER_PWD>with the credentials of a user with therest-allrole. -
Replace
<KIE_SERVER_ID>with the ID or name of the KIE Server installation, for example,rhdm-7.7.0-kie-server-1. -
Replace
<HOST>with the ID or name of the KIE Server host, for example,localhostor192.7.8.9. Replace
<PORT>with the port of the KIE Server host, for example,8080.NoteThe
org.kie.server.locationproperty specifies the location of KIE Server.Replace
<CONTROLLER_URL>with the URL of Business Central. KIE Server connects to this URL during startup.If you installed Business Central using the installer or Red Hat JBoss EAP zip installations,
<CONTROLLER_URL>has this format:http://<HOST>:<PORT>/decision-central/rest/controllerIf you are running Business Central using the
standalone.jarfile,<CONTROLLER_URL>has this format:http://<HOST>:<PORT>/rest/controller
-
Replace