Este conteúdo não está disponível no idioma selecionado.
Chapter 6. Installing and running the headless Process Automation Manager controller with IBM WebSphere Application Server
To use the Process Server REST API or Java Client API to interact with Process Server, install the headless Process Automation Manager controller with IBM WebSphere Application Server. The headless Process Automation Manager controller manages Process Server configuration in a centralized way so that you can use the headless Process Automation Manager controller to create and maintain containers and perform other server-level tasks.
For optimal results, install Process Server and the headless Process Automation Manager controller on different servers in production environments. In development environments, you can install Process Server and the headless Process Automation Manager controller on the same server.
Prerequisites
- The IBM WebSphere Application Server instance is configured as described in Chapter 4, Configuring IBM WebSphere Application Server for Process Server.
- Process Server is installed on the IBM WebSphere Application Server instance.
- You have sufficient user permissions to complete the installation.
Procedure
Navigate to the Software Downloads page in the Red Hat Customer Portal (login required), and select the product and version from the drop-down options:
- Product: Process Automation Manager
- Version: 7.3
- Download Red Hat Process Automation Manager 7.3.0 Add-Ons.
-
Extract the downloaded
rhpam-7.3.0-add-ons.zipfile to a temporary directory. -
Extract the
rhpam-7.3.0-add-ons.zipfile to a temporary directory. In the following examples this directory is calledTEMP_DIR. -
Extract the
rhpam-7.3.0-add-ons/rhpam-7.3.0-controller-ee7.zipfile. Repackage the
controller.wardirectory:-
Navigate to the
TEMP_DIR/rhpam-7.3.0-add-ons/rhpam-7.3.0-controller-ee7/controller.wardirectory. -
Select the contents of the
TEMP_DIR/rhpam-7.3.0-add-ons/rhpam-7.3.0-controller-ee7/controller.wardirectory and create thecontroller.zipfile. -
Rename
controller.ziptocontroller.war. This is the file that you will use to deploy the headless Process Automation Manager controller. -
If desired, copy the new
controller.warfile to a location that is more convenient to deploy from.
-
Navigate to the
-
In the WebSphere Integrated Solutions Console, navigate to Applications
Application Types WebSphere Enterprise Applications. - Click Install.
-
Navigate to the
controller.warfile that you repackaged and select it to upload. Select Fast Path and click Next.
The Install New Application wizard opens.
-
Change the Application Name to
controllerand click Next. - Map the headless Process Automation Manager controller modules to servers according to your specific requirements and click Next.
-
For Bind Listeners for Message-Driven Beans, select Activation Specification for both beans, enter
jms/activation/KIE.SERVER.REQUESTin the Target Resource JNDI Name field, and enter thejms/cf/KIE.SERVER.REQUESTJNDI name for theKIE.SERVER.REQUESTconnection factory. - In the Map Virtual Hosts for Web Modules section, keep the default values and click Next.
-
Set the context root to
controller. - In the Metadata for Modules section, keep the default values and click Next.
- Click Finish to install the headless Process Automation Manager controller and click Save to save the changes to the master configuration.
6.1. Configuring class loading for the headless Process Automation Manager controller Copiar o linkLink copiado para a área de transferência!
After the headless Process Automation Manager controller is installed, you must configure Process Server class loading to set parent classes to load last.
Procedure
-
Navigate to Applications
Application Types WebSphere Enterprise Applications and click kie-server. - Click Class Loading and Update Detection under the Detail Properties heading on the left.
- In the properties, change Class Loader Order to Classes loaded with local class loader first (parent last) and WAR Class Loader Policy to Single class loader for application.
- Save the changes to the master configuration.
6.2. Setting system properties for the headless Process Automation Manager controller Copiar o linkLink copiado para a área de transferência!
After you install the headless Process Automation Manager controller, set the system properties listed in this section on your application server or servers to enable proper interaction with the headless Process Automation Manager controller.
For optimal results, install Process Server and the headless Process Automation Manager controller on different servers in production environments. In development environments, you can install Process Server and the headless Process Automation Manager controller on the same server. In either case, be sure to make these property changes on all application servers where the headless Process Automation Manager controller is installed.
Prerequisite
Process Server and the headless Process Automation Manager controller are installed on the application server instance.
Procedure
Specify the following JVM property values on the application server instance where the headless Process Automation Manager controller is installed:
Expand Table 6.1. Required properties for the headless Process Automation Manager controller Name Requirement org.kie.server.userA user with the
kie-serverroleorg.kie.server.pwdThe password for the user specified in the
org.kie.server.userpropertySpecify the following JVM property values on the application server instance where Process Server is installed:
Expand Table 6.2. Required properties for Process Server when headless Process Automation Manager controller is installed Name Requirement org.kie.server.controller.userA user with the
kie-serverroleorg.kie.server.controller.pwdThe password for the user specified for the
org.kie.server.controller.userpropertyorg.kie.server.idThe ID or name of the Process Server installation, such as
rhdm700-decision-server-1org.kie.server.locationThe URL of the Process Server,
http://<HOST>:<PORT>/kie-server/services/rest/serverorg.kie.server.controllerThe URL of the headless Process Automation Manager controller,
http://<HOST>:<PORT>/controller/rest/controller<HOST>is the ID or name of the Process Server host, for example,localhostor192.7.8.9.<PORT>is the port of the Process Server host, for example,7001.
6.3. Mapping the headless Process Automation Manager controller group and role Copiar o linkLink copiado para a área de transferência!
After the headless Process Automation Manager controller is installed, in the WebSphere Integrated Solutions Console, you must create the kie-server group and then map the kie-server role to the kie-server group.
Prerequisite
- The headless Process Automation Manager controller is installed on the IBM WebSphere Application Server instance.
Procedure
-
In the WebSphere Integrated Solutions Console, create the
kie-servergroup and a user for that group, as described in Creating the Process Server group and role. -
Navigate to Applications
Application Types WebSphere Enterprise Applications and select the newly installed headless Process Automation Manager controller. - Under Detail Properties, click Security Role to User/Group Mapping.
-
Select the
kie-serverrole and click Map Groups to search for thekie-servergroup. Move the
kie-servergroup from the Available list to the Selected list and click OK.This mapping gives the previously created administrator user access to Process Automation Manager.
- Click Save to complete the mapping.
6.4. Verifying the installation Copiar o linkLink copiado para a área de transferência!
After you install the headless Process Automation Manager controller and define the required system properties and role requirements on the application server, verify that the headless Process Automation Manager controller works correctly.
Prerequisites
- Process Server and the headless Process Automation Manager controller are installed on the application server instance.
- You have set all required system properties and role requirements for the headless Process Automation Manager controller on the application server.
Procedure
In your command terminal, enter the following command to verify that the headless Process Automation Manager controller is working:
curl -X GET "http://<HOST>:<PORT>/controller/rest/controller/management/servers" -H "accept: application/xml" -u '<CONTROLLER>:<CONTROLLER_PWD>'
curl -X GET "http://<HOST>:<PORT>/controller/rest/controller/management/servers" -H "accept: application/xml" -u '<CONTROLLER>:<CONTROLLER_PWD>'
<HOST> is the ID or name of the Process Server host, for example, localhost or 192.7.8.9.
<PORT> is the port of the Process Server host, for example, 7001.
<CONTROLLER> and <CONTROLLER_PWD> are the user credentials that you created in this section.
The command should return information about the Process Server instance.
Alternatively, you can use the Process Server Java API Client to access the headless Process Automation Manager controller.
If the headless Process Automation Manager controller is not running, stop and restart the application server instance and try again to access the headless Process Automation Manager controller URL or API.