Task Mining Agent plug-ins
This section is intended for developers working on the user-end.
Plug-ins 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 plug-ins, attach them to processes, and run during project recordings.
Before you begin
To create and deploy TM Agent plug-ins, you must meet the following prerequisites:
- C# (C-Sharp) environment installed on your machine. This is mandatory because TM Agent Plug-ins are made in C#, using .NET 8. 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 plug-ins in Task Mining
Plug-ins are an optional feature in IBM Task Mining. You can enable or disable plug-ins by modifying the configuration parameters file.
Enabling plug-ins on Linux
To enable the IBM Task Mining plug-ins on Linux, do the following steps:
-
Open the configuration parameters file (
<TM_HOME>/conf/application.properties). -
Enter the following command:
agent.plugins.enabled=trueTo disable plug-ins, set the value of
agent.plug-ins.enabledattribute tofalse. -
Save and close the file.
-
Restart the web container by using the following command:
<TM_HOME>/bin/tm-web.sh restart
Enabling plug-ins on Red Hat® OpenShift® Container Platform (OCP)
To enable the IBM Task Mining plug-ins on RedHat Openshift, do the following steps:
-
Open the CRD
yamlfile:- Go to Administrator View > Administration > CustomResourceDefinitions.
- Find
ProcessMiningand 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 that you need to restore it.
-
Add the following code to the
specsection 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-XXXXXand 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 plug-ins in individual projects
After you enable plug-ins in IBM Task Mining, you must also enable plug-ins for individual projects. Plug-ins are applied only to the projects that have the plug-ins feature enabled.
To enable plug-ins for individual projects during project creation, turn on Agent plug-ins enabled in the Create task mining project window.
To enable plug-ins for existing projects, do the following steps:
-
Open the task mining project and then click the Project configuration tab.
-
Click Edit and turn on Agent plug-ins enabled.
After enabling the plug-ins in IBM Task Mining, you can start to create and configure the plug-ins.