Task Mining Agent plugins
This section is intended for developers working on the user-end. This feature is currently offered as a Technology Preview and may be subjected to changes.
Plugins in Task Mining Agent are custom codes that enables you to customize the recording process by intercepting and modifying TM Agent events or creating new events. You can create custom plugins, attach them to processes, and run during project recordings.
Creating and deploying plugins for TM Agent involves the following steps:
- Meeting the prerequisite
- Enabling plugins in Task Mining
- Creating plugins
- Testing and deploying plugins
Meeting the prerequisites
To create and deploy TM Agent plugins, you must meet the following conditions:
- C# (C-Sharp) environment installed on your machine.
This is mandatory because TM Agent Plugins are made in C#, using .NET 7. If you do not have the environment set up, download and install the following packages: - Task Mining Agent installed on your machine. For more information, see Installing TM Agent.
Enabling plugins in Task Mining
Plugins are an optional feature in IBM Task Mining. You can enable or disable plugins by modifying the configuration parameters file.
Enabling plugins on Linux
To enable the IBM Task Mining plugins on Linux, do the following steps:
-
Open the configuration parameters file (
<TM_HOME>/conf/application.properties
). -
Enter the following command:
agent.plugins.enabled=true
To disable plugins, set the value of
agent.plugins.enabled
attribute tofalse
. -
Save and close the file.
-
Restart the web container using the following command:
<TM_HOME>/bin/tm-web.sh restart
Enabling plugins on Red Hat® OpenShift® Container Platform (OCP)
A Fyre OCP cluster with IBM Process Mining installed is required to enable plugins on Red Hat® OpenShift® Container Platform (OCP).
To enable the IBM Task Mining plugins on RedHat Openshift, do the following steps:
-
Log in to the regression test machine. Use the credentials available on the following website Fyre OCP Regression Test Environment.
-
Open the CRD
yaml
file:- Go to Administrator View > Administration > CustomResourceDefinitions.
- Find
ProcessMining
and click it. - Open the Instances tab and click
processmining-instance
. - Open the YAML tab.
-
Optional: Make a copy of the original CRD file in case you need to restore it.
-
Add the following code to the
spec
section of the CRD:taskmining: agent_plugin: true install: true
-
Restart the Task Miner.
-
Go to Administrator > Workloads > Pods.
-
Find
processmining-instance-taskminer-nginx
. -
Click the menu button corresponding to the row with
processmining-instance-taskminer-nginx-XXXXX
and click Delete Pod.
XXXXX
is a string of random letters and numbers that are assigned by the Red Hat® OpenShift® Container Platform (OCP) when the pod is installed.
Enabling plugins in individual projects
After you enable plugins in IBM Task Mining, you must also enable plugins for individual projects. Plugins are applied only to the projects that have the plugins feature enabled.
To enable plugins for individual projects during project creation, set Agent plugins enabled to Yes in the Create task mining project window.
To enable plugins for existing projects, complete the following steps:
-
Open the task mining project and then click the Project configuration tab.
-
Click Edit
.
-
Set Agent plugins enabled to On.
After enabling the plugins in IBM Task Mining, you can start to create and configure the plugins.