IBM Content Management and Capture

IBM Content Management and Capture

Come for answers. Stay for best practices. All we’re missing is you.

 View Only

Integrating IBM Business Automation Insights (BAI) Standalone with Content Cortex

By Haresh Gautham S posted 07/24/26 09:35 AM

  

Co-Author: Dhanesh M

Introduction

IBM Content Cortex is a cloud-native, enterprise content management product built on the FileNet P8 platform. It provides a robust, cloud-native environment for managing enterprise content from document storage and retrieval to lifecycle management and process integration and can be deployed as a standalone product using the Content Cortex operator on Red Hat OpenShift or CNCF platforms.

While Content Cortex manages your content, understanding what is happening with that content at scale who is uploading, downloading, or modifying documents, and when requires a dedicated analytics and insights layer. That is exactly what IBM Business Automation Insights (BAI) Standalone provides.

What Is IBM Business Automation Insights (BAI)?

IBM Business Automation Insights (BAI) is an analytics platform that collects, processes, and visualizes business events from IBM automation products. In the context of content management, BAI captures content events such as document creation, update, deletion, and retrieval emitted by the Content Platform Engine (CPE), and presents them through pre-built dashboards. These dashboards give administrators and business users real-time visibility into content activity within their environment.

BAI can be deployed as a standalone product using the BAI standalone operator, independently from a full CP4BA deployment. This standalone deployment model is particularly useful when BAI needs to serve multiple products or environments including Content Cortex without requiring a full CP4BA stack to be in place.

Why Integrate BAI Standalone with Content Cortex?

By default, Content Cortex does not send content events to BAI unless the integration is explicitly configured. This blog walks you through the steps to bridge that gap enabling Content Cortex to stream content events to a BAI Standalone deployment using an Apache Kafka-based messaging pipeline.

Once the integration is in place, content activity generated in Content Cortex (such as uploading or downloading a document in IBM Business Automation Navigator) becomes visible in the BAI BPC Navigator and Content dashboards providing operational visibility that helps teams monitor, audit, and analyze their content workflows.

💡 Note: This integration applies to environments where BAI Standalone and Content Cortex are deployed either in the same Kubernetes cluster or in different clusters, provided the required network connectivity between the two environments is in place.

What This Blog Covers

This blog provides a step-by-step guide to integrate a BAI Standalone deployment with Content Cortex. It covers the following areas:

  • Prerequisites for the integration
  • Exporting the Kafka configuration and connection secret from the BAI Standalone namespace
  • Creating the required configmap and secret in the Content Cortex namespace
  • Retrieving the Content Event Emitter JAR file from the Content Cortex environment
  • Configuring event actions and subscriptions in the Administration Console for Content Platform Engine (ACCE)
  • Validating the integration through configmap inspection, Navigator activity, and BAI dashboard verification

Prerequisites

Before starting the integration, make sure the following are in place:

  1. BAI Standalone is deployed and running — You must have an operational BAI Standalone deployment. The BAI namespace and the Kafka services within it must be accessible.
  2. Content Cortex is deployed and running — Content Cortex (CCX) must be deployed and operational in its own namespace. Access to ACCE and IBM Business Automation Navigator must be available.
  3. Cluster access — You must have kubectl or oc CLI access to both the BAI Standalone namespace and the Content Cortex namespace. If they are in different clusters, access to both clusters is required.
  4. Network connectivity — If BAI and Content Cortex are deployed in different clusters, the Content Cortex CPE pods must be able to reach the Kafka broker endpoints in the BAI namespace.
  5. LDAP credentials — Valid LDAP credentials are required to log in to ACCE and IBM Business Automation Navigator during the configuration and validation steps.

Exporting Kafka Configuration and Secret from the BAI Standalone Namespace

The first step in the integration is to extract two critical pieces of information from your BAI Standalone deployment — the Kafka configuration and the Kafka connection secret. These will later be imported into the Content Cortex namespace so that the Content Platform Engine (CPE) can connect to the BAI Kafka broker and start streaming content events.

BAI uses Apache Kafka as its event messaging backbone. When BAI is deployed, it creates a shared configmap and a connection secret that contain all the details needed for other components to connect to its Kafka services — broker addresses, topic names, TLS settings, and authentication credentials. Content Cortex needs these exact details to establish the connection.

Step 1: Switch to the BAI Standalone Namespace

Log in to your cluster and switch to the namespace where BAI Standalone is deployed. Replace <bai-namespace> with your actual BAI namespace.

oc project <bai-namespace>

Or if you are using kubectl:

kubectl config set-context --current --namespace=<bai-namespace>

Step 2: Create a Working Directory

Create a dedicated folder on your client machine to hold the exported files. This keeps the artifacts organized and makes it easy to transfer them to the Content Cortex namespace later.

mkdir BAI_Kafka_config
cd BAI_Kafka_config

Step 3: Export the Kafka Configuration from the BAI Shared Configmap

BAI stores its Kafka connection configuration inside a shared configmap called ibm-bai-foundation-shared-info. You need to extract the bai_kafka_configuration key from this configmap and save it as a text file.

Run the following command, replacing <bai-namespace> with your BAI deployment namespace:

kubectl get configmap/ibm-bai-foundation-shared-info \
  -o jsonpath='{.data.bai_kafka_configuration}' \
  -n <bai-namespace> > ./bai_kafka_info.txt

This command reads the bai_kafka_configuration entry from the configmap and writes its contents to a file named bai_kafka_info.txt in your working directory. This file contains the Kafka broker details and topic configuration that CPE will use to connect to BAI.

💡 Tip: After running the command, open bai_kafka_info.txt and verify that it contains valid Kafka configuration content. An empty file indicates that the configmap key was not found or the BAI deployment is not fully initialized.

Step 4: Export the Kafka Connection Secret

In addition to the configuration, CPE also needs the Kafka connection secret, which contains the authentication credentials and TLS certificates required to securely connect to the BAI Kafka service. This secret is named kafka-iaf-connection-secret in the BAI namespace.

Run the following command to export it as a YAML file:

kubectl get secret/kafka-iaf-connection-secret \
  -o yaml \
  -n <bai-namespace> > ./bai_kafka_secret.yaml

This saves the full Kubernetes secret definition to bai_kafka_secret.yaml in your working directory.

Step 5: Clean the Exported Secret YAML

The exported secret YAML contains several fields that are specific to the BAI cluster environment and must be removed before the secret can be re-created in the Content Cortex namespace. If these fields are left in place, the kubectl create command will fail or produce an invalid secret.

Open bai_kafka_secret.yaml in a text editor and remove the following fields:

  • creationTimestamp
  • resourceVersion
  • uid
  • ownerReferences (the entire block, if present)

Also, update the namespace field under metadata to match the Content Cortex deployment namespace. For example:

metadata:
  name: kafka-iaf-connection-secret
  namespace: <content-cortex-namespace>

⚠️ Important: The name of the secret — kafka-iaf-connection-secret must be retained as-is. This name is referenced in the bai_kafka_info.txt configuration file under the key connection_secret_name. Changing the name will break the connection between the configmap and the secret in the Content Cortex namespace.

Step 6: Package the Exported Files (Optional)

If BAI and Content Cortex are deployed in different clusters, you can package the exported files into a zip archive for easy transfer to the machine that has access to the Content Cortex cluster.

cd ..
zip -rv ./BAI_Kafka_config.zip ./BAI_Kafka_config/

Transfer BAI_Kafka_config.zip to the client machine that has access to the Content Cortex Kubernetes cluster, then extract it before proceeding to the next section.

unzip ./BAI_Kafka_config.zip

At this point, you have the two required artifacts ready:

File Contents Purpose
bai_kafka_info.txt Kafka broker and topic configuration Used to create the configmap in the Content Cortex namespace
bai_kafka_secret.yaml Kafka authentication credentials and TLS certificates Used to create the connection secret in the Content Cortex namespace

In the next section, we will import these files into the Content Cortex namespace by creating the required configmap and secret.

Creating the Configmap and Secret in the Content Cortex Namespace

With the Kafka configuration file and the cleaned secret YAML now available on your client machine, the next step is to import them into the Content Cortex deployment namespace. This creates the Kubernetes resources that the Content Platform Engine (CPE) operator will use to automatically configure its connection to the BAI Kafka service.

All commands in this section must be run against the Content Cortex namespace — not the BAI namespace.

Step 1: Switch to the Content Cortex Namespace

Log in to the cluster where Content Cortex is deployed and switch to its namespace. Replace <content-cortex-namespace> with your actual Content Cortex deployment namespace.

oc project <content-cortex-namespace>

Or if you are using kubectl:

kubectl config set-context --current --namespace=<content-cortex-namespace>

Step 2: Create the BAI Kafka Configmap

Create a configmap named fncm-bai-configuration in the Content Cortex namespace using the bai_kafka_info.txt file you exported from the BAI namespace. The Content Cortex operator looks for this specific configmap name to automatically inject the Kafka connection configuration into the CPE deployment.

kubectl create configmap fncm-bai-configuration \
  --from-file=bai_kafka_configuration=./BAI_Kafka_config/bai_kafka_info.txt \
  -n <content-cortex-namespace>

Here is what each part of the command does:

  • fncm-bai-configuration — The name of the configmap. This name is fixed and must not be changed, as the Content Cortex operator specifically looks for a configmap with this name.
  • --from-file=bai_kafka_configuration=... — This creates a key named bai_kafka_configuration inside the configmap, with the contents of your bai_kafka_info.txt file as its value.
  • -n <content-cortex-namespace> — Targets the Content Cortex namespace.

💡 Tip: You can verify the configmap was created successfully by running:
kubectl get configmap fncm-bai-configuration -n <content-cortex-namespace>
To inspect its contents:
kubectl describe configmap fncm-bai-configuration -n <content-cortex-namespace>

Step 3: Create the Kafka Connection Secret

Next, create the Kafka connection secret in the Content Cortex namespace using the cleaned bai_kafka_secret.yaml file. This secret provides the authentication credentials and TLS certificates that CPE needs to securely connect to the BAI Kafka broker.

kubectl create -f ./BAI_Kafka_config/bai_kafka_secret.yaml \
  -n <content-cortex-namespace>

⚠️ Important: Before running this command, confirm that you have already completed the secret cleanup steps from the previous section — removing creationTimestamp, resourceVersion, uid, and ownerReferences, and updating the namespace field to the Content Cortex namespace. Skipping this step will cause the command to fail or create an invalid secret.

You can verify the secret was created successfully by running:

kubectl get secret kafka-iaf-connection-secret -n <content-cortex-namespace>

What Happens Next

Once the configmap and secret are in place, the Content Cortex operator is aware that a BAI Kafka configuration is available in the namespace. When the operator reconciles the CPE deployment, it will automatically mount the Kafka configuration file inside the CPE pods and configure the connection settings — provided the Content Event Emitter is also configured, which is covered in the next section.

The table below summarizes the two Kubernetes resources you have just created in the Content Cortex namespace:

Resource Kind Name Purpose
ConfigMap fncm-bai-configuration Provides Kafka broker and topic configuration to the CPE operator
Secret kafka-iaf-connection-secret Provides Kafka authentication credentials and TLS certificates to CPE pods

In the next section, we will retrieve the Content Event Emitter JAR file from the Content Cortex environment, which is required to configure the event subscription in ACCE.

Retrieving the Content Event Emitter JAR and Configuring Event Actions in ACCE

With the Kafka configmap and secret in place in the Content Cortex namespace, the next step is to configure the Content Event Emitter, the component inside Content Platform Engine (CPE) that is responsible for capturing content events and publishing them to the BAI Kafka topic.

The Content Event Emitter is packaged as a Java Archive (JAR) file bai-content-emitter.jar that ships with the CPE deployment. It is uploaded into ACCE as a code module and associated with an event action, which in turn is linked to event subscriptions on your object store. Once configured, every document creation, update, deletion, or retrieval event on the subscribed object store is automatically published to BAI.

Step 1: Retrieve the Content Event Emitter JAR from the CPE Pod

The bai-content-emitter.jar file is bundled inside the running CPE pod. Use the following commands to identify the CPE pod and copy the JAR file to your local machine.

First, get the name of the CPE pod:

POD=$(kubectl get pod | grep cpe-deploy- | awk '{print $1}')
echo $POD

Then copy the JAR file from the pod to your local working directory:

kubectl cp $POD:lib/ContentBAI/eventhandler/bai-content-emitter.jar ./bai-content-emitter.jar

After the copy completes, confirm the file is present locally:

ls -lh ./bai-content-emitter.jar

💡 Note: If your environment has multiple CPE pods (for example, in a high-availability setup), the JAR file is identical across all pods. You only need to copy it from one pod.

Step 2: Log in to ACCE

The Administration Console for Content Platform Engine (ACCE) is used to configure the event action and subscriptions. Retrieve the ACCE URL from the Content Cortex access information in your cluster.

You can find the ACCE URL by checking the route or ingress for your Content Cortex deployment. Log in using the LDAP credentials stored in the ibm-fncm-secret in the Content Cortex namespace.

Step 3: Create a New Event Action in ACCE

Once logged in to ACCE, navigate to the object store where you want to enable content event emission. Then follow the path below:

Object Store → Events, Actions, Processes → Event Actions → New

On the new Event Action creation screen, provide the following configuration:

Field Value
Display Name Any meaningful name, for example: BAI Content Emitter Action
Event Action Type Java
Java Class Handler com.ibm.bai.content.event.emitter.eventhandler.ContentEmitterHandler

Step 4: Upload the JAR as a Code Module

On the same Event Action creation screen, locate the Code Module section. You need to upload the bai-content-emitter.jar file you retrieved in Step 1 as the code module for this event action.

  1. Click New or Specify the Code Module in the Code Module section.
  2. Upload the bai-content-emitter.jar file from your local machine.
  3. Complete the event action creation and save.

⚠️ Important: The Java class handler name must be entered exactly as shown:
com.ibm.bai.content.event.emitter.eventhandler.ContentEmitterHandler
Any typo in the class name will prevent the event emitter from functioning correctly.

Step 5: Create Event Subscriptions

After saving the event action, you need to create event subscriptions that associate the event action with specific document events on the object store. Subscriptions define which events — such as document creation, update, or deletion — will trigger the event emitter and publish data to BAI.

In ACCE, navigate to:

Object Store → Events, Actions, Processes → Subscriptions → New

When creating each subscription, associate it with the BAI Content Emitter Action you created in Step 3. The Content Event Emitter supports the following event types:

Event Type Description Enabled by Default
Creation Event Triggered when a document is created in the object store Yes
Update Event Triggered when a document is updated Yes
Deletion Event Triggered when a document is deleted Yes
Get Content Event Triggered when document content is retrieved (downloaded) No — results in a significant increase in emitted events

💡 Note: The Get Content Event is not enabled by default because enabling it can result in a large volume of events being emitted, especially in environments with high document retrieval activity. Enable it only if your use case specifically requires tracking document downloads in BAI.

Create subscriptions for each of the event types you want to track. You can customize which events are emitted by selecting different triggers for each subscription.

In the next section, we will reconcile the Content Cortex operator to apply the configuration and verify that the emitter details are correctly reflected in the Content Cortex configmaps.

Reconciling the Operator and Validating the Integration

With the Kafka configmap and secret in place in the Content Cortex namespace, and the Content Event Emitter configured in ACCE, the final step is to reconcile the Content Cortex operator and validate that the integration is working end-to-end.

Reconciliation triggers the Content Cortex operator to re-read the namespace configuration including the fncm-bai-configuration configmap you created and automatically inject the Kafka connection settings into the CPE and Navigator deployments. After reconciliation, you will verify the configuration through the Content Cortex configmaps and then generate real content activity to confirm that data appears in the BAI dashboards.

Step 1: Reconcile the Content Cortex Operator

To trigger reconciliation, restart the Content Cortex operator pod. This causes the operator to re-evaluate the current state of the namespace and apply any pending configuration changes — including the BAI Kafka integration settings.

kubectl delete pod -l name=ibm-content-operator -n <content-cortex-namespace>

Kubernetes will automatically restart the operator pod. Once the operator pod is back in a Running state, it will begin reconciling the CPE and Navigator deployments.

⏲ Note: After reconciliation begins, wait approximately 30 minutes for the operator to complete the configuration updates across the CPE and Navigator deployments. The operator needs to restart the relevant pods and mount the updated configuration. Do not proceed to the validation steps until the deployments have stabilized.

You can monitor the operator pod status using:

kubectl get pods -n <content-cortex-namespace> | grep fncm-operator

And monitor the overall pod status in the namespace to confirm all pods return to a Running state:

kubectl get pods -n <content-cortex-namespace>

Step 2: Verify the BAI Emitter Configuration in Content Cortex Configmaps

Once the operator has finished reconciling, it automatically updates two configmaps in the Content Cortex namespace with the BAI emitter details:

  • content-cpe-config — Contains the CPE configuration, including the injected Kafka connection settings
  • content-navigator-config — Contains the Navigator configuration, including the BAI integration details

Inspect these configmaps to confirm the BAI emitter configuration has been applied. Search for the BAI deployed cluster name and verify that the emitter details are present:

kubectl describe configmap content-cpe-config -n <content-cortex-namespace>
kubectl describe configmap content-navigator-config -n <content-cortex-namespace>

In the output, look for the BAI Kafka broker details and emitter configuration entries. The presence of these entries confirms that the operator has successfully injected the BAI connection settings into the Content Cortex deployment.

Step 3: Generate Content Activity in Navigator

To validate the end-to-end integration, you need to generate real content activity in IBM Business Automation Navigator (BAN). The BAI dashboards are populated by actual content events, so you need to perform document operations that trigger the Content Event Emitter subscriptions you configured in ACCE.

Retrieve the Navigator URL from the Content Cortex access information and log in using the credentials from the ibm-ban-secret in the Content Cortex namespace.

Once logged in, perform the following operations on a document in the object store where you configured the event subscriptions:

  1. Upload a document — This triggers a Creation Event and publishes it to BAI via Kafka.
  2. Download the document — This triggers a Get Content Event, if you enabled that subscription in ACCE.

💡 Note: Make sure you perform these operations on the object store where the event subscriptions were created in ACCE. Events from object stores without subscriptions will not be emitted to BAI.

Step 4: Verify Data in BAI Dashboards

After generating content activity in Navigator, log in to the BAI Standalone deployment and navigate to the dashboards to confirm that the content events are being received and visualized.

In BAI, check the following dashboards:

  • BPC Navigator Dashboard — Displays content activity metrics such as document operations performed through Navigator
  • Content Dashboard — Displays detailed content event data including creation, update, deletion, and retrieval events from the Content Platform Engine

If the integration is working correctly, the document upload and download activity you performed in Navigator will appear in these dashboards within a short time, depending on the Kafka processing latency in your environment.

A successful validation where content activity in Navigator is reflected in the BAI dashboards confirms that the integration between Content Cortex and BAI Standalone is fully operational.

Summary

In this blog, we walked through the steps to integrate IBM Business Automation Insights (BAI) Standalone with Content Cortex — enabling content events generated in Content Cortex to be streamed to BAI and visualized in the BAI dashboards.

To summarize, the integration involves:

  1. Exporting the Kafka configuration and connection secret from the BAI Standalone namespace
  2. Creating the fncm-bai-configuration configmap and kafka-iaf-connection-secret in the Content Cortex namespace
  3. Retrieving the Content Event Emitter JAR and configuring event actions and subscriptions in ACCE
  4. Reconciling the Content Cortex operator and verifying the configuration in the deployment configmaps
  5. Validating the integration by generating content activity in Navigator and confirming data in the BAI dashboards

References

0 comments
9 views

Permalink