Integration cockpit into custom web application by navigation links

Hello,

I would like to integrate the camunda cockpit into an existing custom web application (for the administrators). This could work quite easy into both directions:

1.) Deeplink from custom webapp to cockpit
I would like to concat a deep link like
http://pubx.local:8080/app/cockpit/default/#/<definitionKey>/<businessKey> which would search for the process instance with the business key in all versions descending from the latest and display it when found.
2.) Deeplink from cockpit to custom webapp
I would like to set a property like
camunda.rest.businessUriPrefixes.<definitionKey>=http://localhost/mydata?id=
If this property is set the cockpit should link the business key with this link to navigate to the custom webapp

Hi @bmaehr,

You can achieve this with Cockpit Plugins.
This Example shows you how you can display all Processes with Incidents. You can adjust it to fit your use-case, e.g. using the window location to build the query.

Hope this helps
Martin

Hello Martin,

I don’t think it is possible to implement it with plugins.
I implemented it to the camunda projects and created three merge request:



What’s missing is the implementation in the webapp handling the path
http://localhostl:8080/app/cockpit/default/#/<definitionKey>/<businessKey>, creating a search request to the rest api (the rest api is already able to handle this request, I have tested it) and redirecting to the process instance view. Unfortunately I’m not so good at angular to implement it myself, so perhaps someone could implement it sometimes later.

Nevertheless the point 2 is implemented with these three merge requests and is working from configuartion until the rest api. The changes in the UI must be checked.