이 콘텐츠는 선택한 언어로 제공되지 않습니다.
Chapter 14. Installing Red Hat Process Automation Manager from ZIP files
The Red Hat Process Automation 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 Process Automation Manager controller, see Chapter 19, Installing and running the headless Process Automation Manager controller.
14.1. Installing Business Central from the ZIP file 링크 복사링크가 클립보드에 복사되었습니다!
Business Central is a web console that enables you to perform the following tasks over individual components in a unified web-based environment:
- Create, manage, and edit your rules, processes, and related assets.
- Manage connected KIE Server instances and their KIE containers (deployment units).
- Execute runtime operations against processes and tasks in KIE Server instances connected to Business Central.
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 Process Automation Manager installation files:
rhpam-7.9.1-business-central-eap7-deployable.zip
Procedure
-
Extract the
rhpam-7.9.1-business-central-eap7-deployable.zipfile to a temporary directory. In the following examples this directory is calledTEMP_DIR. Copy the contents of the
TEMP_DIR/rhpam-7.9.1-business-central-eap7-deployable/jboss-eap-7.3directory toEAP_HOME. When prompted, merge or replace files.WarningEnsure the names of the Red Hat Process Automation 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 Process Automation Manager installation files:
rhpam-7.9.1-kie-server-ee8.zip
Procedure
-
Extract the
rhpam-7.9.1-kie-server-ee8.ziparchive to a temporary directory. In the following examples this directory is calledTEMP_DIR. Copy the
TEMP_DIR/rhpam-7.9.1-kie-server-ee8/kie-server.wardirectory toEAP_HOME/standalone/deployments/.WarningEnsure the names of the Red Hat Process Automation 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/rhpam-7.9.1-kie-server-ee8/rhpam-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.
If you use Microsoft SQL Server, make sure you have configured proper transaction isolation for your database. If you do not, you may experience deadlocks. The recommended configuration is to turn on ALLOW_SNAPSHOT_ISOLATION and READ_COMMITTED_SNAPSHOT by entering the following statements:
ALTER DATABASE <DBNAME> SET ALLOW_SNAPSHOT_ISOLATION ON
ALTER DATABASE <DBNAME> SET READ_COMMITTED_SNAPSHOT ON
14.3. Configuring JDBC data sources for KIE Server 링크 복사링크가 클립보드에 복사되었습니다!
A data source is an object that enables a Java Database Connectivity (JDBC) client, such as an application server, to establish a connection with a database. Applications look up the data source on the Java Naming and Directory Interface (JNDI) tree or in the local application context and request a database connection to retrieve data. You must configure data sources for KIE Server to ensure proper data exchange between the servers and the designated database.
For production environments, specify an actual data source. Do not use the example data source in production environments.
Prerequisites
- The JDBC providers that you want to use to create database connections are configured on all servers on which you want to deploy KIE Server, as described in the "Creating Datasources" and "JDBC Drivers" sections of the Red Hat JBoss Enterprise Application Server Configuration Guide.
- The Red Hat Process Automation Manager 7.9.1 Add Ons (rhpam-7.9.1-add-ons.zip) file is downloaded from the Software Downloads page in the Red Hat Customer Portal.
Procedure
Complete the following steps to prepare your database:
-
Extract
rhpam-7.9.1-add-ons.zipin a temporary directory, for exampleTEMP_DIR. -
Extract
TEMP_DIR/rhpam-7.9.1-migration-tool.zip. -
Change your current directory to the
TEMP_DIR/rhpam-7.9.1-migration-tool/ddl-scriptsdirectory. This directory contains DDL scripts for several database types. Import the DDL script for your database type into the database that you want to use, for example:
psql jbpm < /ddl-scripts/postgresql/postgresql-jbpm-schema.sqlNoteIf you are using PostgreSQL or Oracle in conjunction with Spring Boot, you must import the respective Spring Boot DDL script, for example
/ddl-scripts/oracle/oracle-springboot-jbpm-schema.sqlor/ddl-scripts/postgresql/postgresql-springboot-jbpm-schema.sql.NoteThe PostgreSQL DDL scripts create the PostgreSQL schema with auto-incrementing integer value (OID) columns for entity attributes annotated with @LOB. To use other binary column types such as BYTEA instead of OID, you need to create the PostgreSQL schema with the
postgresql-bytea-jbpm-schema.sqlscript and set the Red Hat Process Automation Managerorg.kie.persistence.postgresql.useBytea=trueflag. Red Hat Process Automation Manager does not provide a migration tool to change from an OID-based to a Bytea-based schema.
-
Extract
-
Open
EAP_HOME/standalone/configuration/standalone-full.xmlin a text editor and locate the<system-properties>tag. Add the following properties to the
<system-properties>tag where<DATASOURCE>is the JNDI name of your data source and<HIBERNATE_DIALECT>is the hibernate dialect for your database.NoteThe default value of the
org.kie.server.persistence.dsproperty isjava:jboss/datasources/ExampleDS. The default value of theorg.kie.server.persistence.dialectproperty isorg.hibernate.dialect.H2Dialect.<property name="org.kie.server.persistence.ds" value="<DATASOURCE>"/> <property name="org.kie.server.persistence.dialect" value="<HIBERNATE_DIALECT>"/>The following example shows how to configure a datasource for the PostgreSQL hibernate dialect:
<system-properties> <property name="org.kie.server.repo" value="${jboss.server.data.dir}"/> <property name="org.kie.example" value="true"/> <property name="org.jbpm.designer.perspective" value="full"/> <property name="designerdataobjects" value="false"/> <property name="org.kie.server.user" value="rhpamUser"/> <property name="org.kie.server.pwd" value="rhpam123!"/> <property name="org.kie.server.location" value="http://localhost:8080/kie-server/services/rest/server"/> <property name="org.kie.server.controller" value="http://localhost:8080/business-central/rest/controller"/> <property name="org.kie.server.controller.user" value="kieserver"/> <property name="org.kie.server.controller.pwd" value="kieserver1!"/> <property name="org.kie.server.id" value="local-server-123"/> <!-- Data source properties. --> <property name="org.kie.server.persistence.ds" value="java:jboss/datasources/KieServerDS"/> <property name="org.kie.server.persistence.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/> </system-properties>
The following dialects are supported:
-
DB2:
org.hibernate.dialect.DB2Dialect -
MSSQL:
org.hibernate.dialect.SQLServer2012Dialect -
MySQL:
org.hibernate.dialect.MySQL5InnoDBDialect -
MariaDB:
org.hibernate.dialect.MySQL5InnoDBDialect -
Oracle:
org.hibernate.dialect.Oracle10gDialect -
PostgreSQL:
org.hibernate.dialect.PostgreSQL82Dialect -
PostgreSQL plus:
org.hibernate.dialect.PostgresPlusDialect -
Sybase:
org.hibernate.dialect.SybaseASE157Dialect
14.4. 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 Process Automation Manager roles and users.
Prerequisites
-
Red Hat Process Automation 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 that you will use to log in to Business Central.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. Thekie-serverrole is mandatory for users to have access to Manage and Track views in Business Central.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-serverNoteMake 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-serverMake 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-serverYou should install Business Central and KIE Server on different servers in production environments.
14.5. Configuring KIE Server to connect to Business Central 링크 복사링크가 클립보드에 복사되었습니다!
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 Process Automation Manager environment, or if you require additional KIE Servers in your Red Hat Process Automation 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 Process Automation 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-serverFor more information, see Section 14.4, “Creating users”.
-
In Business Central, a user with the role
Procedure
-
In your Red Hat Process Automation Manager installation directory, navigate to the
standalone-full.xmlfile. For example, if you use a Red Hat JBoss EAP installation for Red Hat Process Automation Manager, go to$EAP_HOME/standalone/configuration/standalone-full.xml. Open
standalone-full.xmlfile and under the<system-properties>tag, set the following JVM properties:Expand Table 14.1. JVM Properties for KIE Server Instance Property Value Note org.kie.server.iddefault-kie-serverThe KIE Server ID.
org.kie.server.controllerhttp://localhost:8080/business-central/rest/controllerThe location of Business Central. The URL for connecting to the API of Business Central.
org.kie.server.controller.usercontrollerUserThe user name with the role
rest-allwho can log in to the Business Central.org.kie.server.controller.pwdcontrollerUser1234;The password of the user who can log in to the Business Central.
org.kie.server.locationhttp://localhost:8080/kie-server/services/rest/serverThe 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.usercontrollerUserThe user name with the role
kie-server.org.kie.server.pwdcontrollerUser1234;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/business-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"/>Example for Business Central Instance:
<property name="org.kie.server.user" value="controllerUser"/> <property name="org.kie.server.pwd" value="controllerUser1234;"/>To verify that KIE Server starts successfully, send a GET request to
http://SERVER:PORT/kie-server/services/rest/server/when KIE Server is running. For more information about running Red Hat Process Automation Manager on KIE Server, see Running Red Hat Process Automation Manager.After successful authentication, you receive an XML response similar to the following example:
<response type="SUCCESS" msg="Kie Server info"> <kie-server-info> <capabilities>KieServer</capabilities> <capabilities>BRM</capabilities> <capabilities>BPM</capabilities> <capabilities>CaseMgmt</capabilities> <capabilities>BPM-UI</capabilities> <capabilities>BRP</capabilities> <capabilities>DMN</capabilities> <capabilities>Swagger</capabilities> <location>http://localhost:8230/kie-server/services/rest/server</location> <messages> <content>Server KieServerInfo{serverId='first-kie-server', version='7.5.1.Final-redhat-1', location='http://localhost:8230/kie-server/services/rest/server', capabilities=[KieServer, BRM, BPM, CaseMgmt, BPM-UI, BRP, DMN, Swagger]}started successfully at Mon Feb 05 15:44:35 AEST 2018</content> <severity>INFO</severity> <timestamp>2018-02-05T15:44:35.355+10:00</timestamp> </messages> <name>first-kie-server</name> <id>first-kie-server</id> <version>7.5.1.Final-redhat-1</version> </kie-server-info> </response>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.