Configure the Content event emitter through the Administration Console for Content Platform Engine to set up your events, actions, and document
processes.
Before you begin
Determine your access to the Administration Console for Content Platform Engine:
- Container deployments
-
The content-fncm-access-info ConfigMap contains the routes that enable you to
access various platform components. The ConfigMap name is prefixed with the deployment name and type
(by default in
FileNet®
P8 containers
content-fncm and in ICP4BA content-cp4ba).
- In the OpenShift Console, go to
.
- Search for the string
content-fncm-access-info or
content-cp4ba-access-info. You can also retrieve the information for the
acce route by running the following
command.kubectl get cm content-fncm-access-info -n <namespace> | grep acce
For
example,
content_platform_engine_server:port/acce, where,
- content_platform_engine_server
- The name of the server where Content Platform Engine is
deployed.
- port
- The HTTPS port that is used by the web application on the server where Content Platform Engine is deployed. In a highly available
environment, use the load-balanced virtual name for the
content_platform_engine_server:port (for example, you can use
https://virtual_server/acce).
About this task
Create an event action and subscription with the bai-content-emitter.jar
file as the code module.
Procedure
-
Log in to the Administration Console for Content Platform Engine.
- Go to .
The object store name placeholder
represents the name of the object store where you want to create the event action and subscription,
for example, TARGET or DESIGN.
- Right-click Event Actions and select New Event
Action:
- Enter a name for the event action, for example
MyBAIEventAction, and then click Next.
- At the Event Action Type Selection section, proceed as
follows.
- Check Status: Enabled.
- Select Event Action: Event Action.
- Click Next.
- At the Specify the Type of Event Action section, proceed as
follows.
- Select Type: Class.
- At Java class handler:, enter
com.ibm.bai.content.event.emitter.eventhandler.ContentEmitterHandler
- Check Configure code module.
- Click Next.
- At the Specify the Code Module section, proceed as
follows.
- Enter the Code module title, for example:
EmitterCodeModule
- At Content elements:, click Browser to select the
bai-content-emitter.jar file that you retrieved in the previous steps and set
the Type: to application/java-archive.
- Click Next, then click Finish.
-
To create an event subscription, right-click Subscriptions and select
New Subscription.
- Enter a Display name, for example BAISubscription, and then
click Next.
- At the Select Classes section, set Class
type and Class to Document, and then click
Next.
- At the Specify the Subscription Behavior section, keep the
default settings and click Next.
- At the Select the Triggers section, select Creation
Event, Update Event, and Deletion Event.
Then click Next.
- You can also select Get Content Event. Selecting
this event results in a large increase in emitted events.
- Events other than Creation Event, Update Event,
Deletion Event, and Get Content Event are not
supported.
- At the Event action section, for Select an
event action, select the event action for BAI that you created in the previous
step, for example MyBAIEventAction. Click
Next.
- At the Specify Additional Options section, make the following
selections.
- For Initial state:, select Enable the
Subscription.
- For Subclass option:, select Include subclasses if
you want to emit subclasses.
- Do not select Run synchronously.
- Click Next, then click Finish to create
a new subscription.