Add a link to tasklist navigation bar in Camunda

Viewed 193

I'd like to add a button that opens a link in the tasklist navigation bar:

Camunda tasklist navbar

I read the documentation and it's clear that I have to add a plugin to the tasklist app but I can't figure out how to do it based on the given example.

Any hints, please? Thanks!

1 Answers

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.

Related