Red Hat Process Automation Manager Adapter

Red Hat® Process Automation Manager (PAM) is an open-source business automation platform. Business enterprise users can access the centralized data repository to manage and deploy business processes, cases, and business rules. Refer to Red Hat Process Automation Manager.

The Red Hat PAM adapter in Fabric Console exposes the services and operations created using Red Hat PAM Business Central Interface.

To integrate a Red Hat PAM service in Quantum Fabric, developers need to create a project in the Red Hat PAM and deploy it to KIE Server and then configure the Red Hat PAM adapter in Fabric Integration Services. After you publish the service, you can invoke the configured operations from the runtime server.

Red Hat PAM has primarily two components: Business Central and KIE Server:

  • Business Central is used for decision creation and build projects.
  • KIE Server is used for deploying the projects. Once the project is deployed, the configured APIs for accessing decisions/rules are hosted on the server.

Prerequisites

  • Red Hat PAM Server is installed on the host machine.

  • A project with DMN created using the Red Hat Process Automation Manager is deployed to KIE Server.

  • For invocation of processes APIs and case APIs, a project with process definition and case definition is deployed to KIE Server.

  • For invocation of task APIs, process definition and case definition with human tasks in a project are deployed to KIE Server.

  • A user is configured with the following user roles in Keycloak IDM or Red Hat PAM Server:

    • kie-server
    • rest-all
    • admin

Configuring a Red Hat PAM Adapter involves the following steps:

How to Configure Service Definition for Red Hat PAM Adapter

To configure a Red Hat PAM adapter in the Integration Service Definition tab, follow these steps:

  1. In the Name field, provide a unique name for your service. When you enter the name, the name is updated for the active service under the Services section in the left pane.
  2. From the Service Type list, select Red Hat PAM.

    NOTE: XML is selected, by default.

  3. Provide the following details in the Connection Parameters section to create a Red Hat PAM Adapter Service.
    FieldsDescription
    VersionSelect the version for the service.
    Connection URL

    Provide the base endpoint URL of the KIE Server REST API endpoint.
    For example :http(s)://{host}:{port}/kie-server/services/rest/server

    User ID

    Type the user ID for the connection URL.

    NOTE: If RedHat PAM Server is integrated with Keycloak, and if authentication is chosen as Use Existing Identity Provider or Specify Login Endpoint, in this case, these User ID and Password are optional. Refer to Authentication in this section.

    Password Type the password for the user ID which you have entered.
  4. In the Authentication section, you can select an identity provider from Use Existing Identity Provider. This drop-down lists the identity providers created on the Identity page. If you select any identity provider, you have to enter valid login credentials.

    NOTE: The Authentication section is optional.

    NOTE: From V9SP2 HotFix, the Fabric Red Hat PAM adapter has been enhanced to support Keycloak IDM for authorization. Refer Fabric OAuth 2.0 Identity Service.

    Business use case: For example, Temenos Infinity Spotlight and the Red Hat PAM applications are integrated with Keycloak IDM. Users of the bank are maintained at Keycloak IDM. After the bank customer logs in to Spotlight, the user is SSO enabled. So that when the bank customer navigates to the Task Management/Workspace application within Spotlight, the user is authorized for RedHat tasks that he owns. The user can then access those tasks within Spotlight.

    Authentication

    • Use Existing Identity Provider - select Keycloak identity provider to pass external IDM backend authentication token to RedHat Services for Authentication.

      NOTE: You must select Keycloak Identity Services for Red Hat Services. Fabric RedHat Integration Services do not honor other identity services.

      This drop-down lists identity providers that are linked to the app in the Fabric Identity Services, for example: OAuth2 based Keycloak Identity Service.
      Fill in the details for the following fields:

      1. From the Select Identity Provider list, select your Keycloak identity service.

        NOTE: You can test the Keycloak Identity Service to validate your login credentials. If the identity session is already active, you are not prompted for login credentials again.

        Refer to Integration of Keycloak IDM with RedHat PAM Server.

    • Specify Login Endpoint- configure Keycloak endpoint and static user credentials for Red Hat services authentication.

      Fill in the details for the following fields:

      1. In the Endpoint URL, enter the URL - for example,
        http(s)://{host}:{port}/auth/realms/{realm}/protocol/openid-connect/token
        .

      2. In the Client ID text box, enter a valid client id.

      3. In the User ID text box, enter a valid user ID.

      4. In the Password text box, enter a valid password.

      Refer to Integration of Keycloak IDM with RedHat PAM Server.

    NOTE: For more information on Externalizing Identity Services, refer to Replace the Identity Service references in a Fabric app.

  5. NOTE: All options in the Advanced section are optional.

  6. Enter the Description for the service.
  7. Click SAVE to save your service definition.

How to Create and Configure Operations for the Red Hat PAM Adapter

The Operations List tab appears only after the service definition is saved and authentication is successful using provided connection parameters.

NOTE: Click Operations List tab > Configure Operation. The Configured Operations list appears.

  • To create an operation, follow these steps:
    1. Click SAVE & ADD OPERATION in your service definition page to save your service definition and display the New Operation tab for adding operations.

                          OR

      Click Add Operation to add a new operation or from the tree in the left pane, click Add > Add New Operation.

    2. From the ADD OPERATION list, expand the RedHatPAM and select the check boxes for the available operations.
    3. Click ADD OPERATION. The new operations are created under Configured Operations section.

    4. Operation names are auto-generated in the format. The default name format of a Red Hat PAM operation is <Group_name>_<selectedoperation's_name>. You can change the operation name if required.
      For example, DMNs_invokeDMNRule.
    5. To configure an operation: Once you create operations for Red Hat PAM adapter, you can configure the operations such as configuring advanced configurations, adding test values, and fetching the response. Under Configured Operations, hover your cursor over the creates operation, click the Settings > Edit.

      NOTE: To edit an operation, you can also click the operation from the service tree pane.

      The system displays the selected operation in the edit mode. Provide the following details to configure the operation.

      FieldsDescription
      NameThe Name field is pre-populated with field names of the selected operation. You can edit this field.
      Operation Security Level

      It specifies how a client must authenticate to invoke this operation.

      NOTE: The field is set to Authenticated App User, by default.

    6. NOTE: All options in the Advanced section for operations are optional.

    7. Enter the Description for the operation.
    8. After you create operations, they are configured with request and response parameters by default.

      IMPORTANT: Do not edit these parameter names under the NAME column for request and response.

    9. To validate the details, from the Environment drop-down list select an environment from the listed run-time environments configured for the Quantum Fabric account, and then click SAVE AND FETCH RESPONSE. Refer to Test a Service Operation for the steps to test a service.
    10. Click SAVE OPERATION.

      NOTE: You can view the service in the Data Panel feature of Quantum Visualizer. By using the Data Panel, you can link back-end data services to your application UI elements seamlessly with low-code to no code. For more information on Data Panel, click here.

    You can test the published services using the Admin Console. After you publish an integration service, you can test the service using different operations available in the service. To know more on integration service in the Admin Console, refer to the App Services Console User Guide.

    References