I found the Camunda docs very un-helpful. Consequently, I decided to find existing plugins to better understand what is needed. Luckily, I stumbled upon a sample project called tasklist-plugin-easy-search.
I cloned this project and used it as a base.
Within your newly cloned project , make sure that the class name in
/code-master/snippets/tasklist-plugin-easy-search/src/main/java/com/camunda/demo/plugin/tasklist/search/easy/EasySearchPlugin
is referenced in a file called org.camunda.bpm.tasklist.plugin.spi.TasklistPlugin that resides in the directory
META-INF/services.
There are a limited number of locations on the Tasklist webpage whereby you can place your plugin.
Please have a look here.
Once selected you can change the code in /code-master/snippets/tasklist-plugin-easy-search/src/main/resources/plugin-webapp/easy-search-plugin/app/plugin.js
var Configuration = ['ViewsProvider', function (ViewsProvider) {
ViewsProvider.registerDefaultView('tasklist.navbar.action', {
id: 'claim-interface-plugin',
label: 'Search',
url: 'plugin://claim-interface-plugin/static/app/claim-interface-plugin.html',
controller: Controller,
priority: 1000
});
}];
Finally, to integrate this plugin into you Camunda web app, you should create a Jar file. Next, shut down your Camunda web app if it is running.
Thereafter, go into your Camunda web app directory and place the Jar in
/server/apache-tomcat-8.0.24/webapps/camunda/WEB-INF/lib/.
Start up your Camunda web app.