camunda-7-cockpit-plugin-statistics icon indicating copy to clipboard operation
camunda-7-cockpit-plugin-statistics copied to clipboard

Is it possible to setup this plugin with the Camunda Java API?

Open facundofarias opened this issue 9 years ago • 1 comments

Hi there, I've been taking a look at this plugin, and it seems to be quite good. We are using the Camunda BPM Java API embedded on our application, but I was wondering.. is there a way to integrate this plugin? Or should I do it "by hand"? Thanks in advance!

Facundo

facundofarias avatar Sep 09 '15 09:09 facundofarias

Hi facundo,

first of all - thank you for your interesting question :) As far as I got your situation right, there is no easy way to integrate that plugin :(. You have to consider the following requirements:

  • the final jar artifact only works in the context of a camunda-cockpit webapp. Because of that resources like css (e.g. a customized bootstrap) or javascript files (angular-bootstrap-ui) are already provided with the cockpit
  • The data presented in the plugin is provided via (JAX-RS) resources that therefor need a web/application server container.
  • We use custom queries that work by convention over configuration via the camunda cockpit plugin mechanism

My ideas to get the plugin running with the embedded api:

  • Provide some Wrappers around your embedded api, that are accessible from web. A Rest Wrapper may be the easiest way because afterwards you only have to customize the resource locations in our web data access service
  • Provide an environment to run the plugin: Either you use a bundled camunda version in e.g. tomcat that you only use for the plugin (with customized resource locations as provided by your wrapper) or you provide all necessary resources for the plugin (js/css) by hand and customize the plugin to work with these resources as a "stand-alone" webpage.

Does this help you? You have further questions?

Does this help?

eklieme avatar Sep 10 '15 08:09 eklieme