GithubHelp home page GithubHelp logo

jilanims / camunda-cockpit-plugins Goto Github PK

View Code? Open in Web Editor NEW

This project forked from datakurre/camunda-cockpit-plugins

0.0 0.0 0.0 14.63 MB

Minimal "history plugins" for Camunda Cockpit

License: Apache License 2.0

JavaScript 96.22% TypeScript 2.75% SCSS 1.02%

camunda-cockpit-plugins's Introduction

Minimal "history plugins" for Camunda Cockpit

Minimal history plugin in action.

Breaking changes

Try it

With Camunda Platform 7.14.0:

$ git clone https://github.com/datakurre/camunda-cockpit-plugins.git
$ docker run --rm -p 8080:8080 -v $(pwd)/camunda-cockpit-plugins:/camunda/webapps/camunda/app/cockpit/scripts/:ro camunda/camunda-bpm-platform:7.14.0

With Camunda Platform 7.15.0 (works also with 7.16.0 or 7.17.0):

$ git clone https://github.com/datakurre/camunda-cockpit-plugins.git
$ docker run -d --name mytemp camunda/camunda-bpm-platform:7.15.0
$ docker cp mytemp:/camunda/webapps/camunda/app/cockpit/scripts/camunda-cockpit-ui.js camunda-cockpit-plugins
$ docker rm -vf mytemp
$ docker run --rm -p 8080:8080 -v $(pwd)/camunda-cockpit-plugins:/camunda/webapps/camunda/app/cockpit/scripts/:ro camunda/camunda-bpm-platform:7.15.0

See also the example Dockerfile for Camunda Run 7.15.0.

If you don't immediately see the plugin, try again with your browser's private browsing mode. It is a common issue browser has cached a previous Cockpit plugin configuration without these plugins.

Note: Trying out the plugins with Camunda Platform 7.15.0 Docker image is more complex than with the previous version 7.14.0, because the new location of camunda-cockpit-ui.js prevents simple override of the scripts folder.

Use it

Spring Boot

Copy config.js and the files it references to ./src/main/resources/META-INF/resources/webjars/camunda/app/cockpit/scripts. Once you are done, your project structure should look like this:

src/main/resources/
├── META-INF
│   ├── resources
│   │   └── webjars
│   │       └── camunda
│   │           └── app
│   │               └── cockpit
│   │                   └── scripts
│   │                       ├── config.js
│   │                       ├── definition-historic-activities.js
│   │                       ├── instance-historic-activities.js
│   │                       ├── instance-route-history.js
│   │                       └── robot-module.js

After this you can start the project and the plugin should be loaded. Usually, you customize config.js per project and define there which plugins are included and where the browser should find them. You may use a browser network inspector to check that Cockpit loads your version of config.js and also the plugin JavaScript files get loaded.

Other Distributions

Check the forum discussion on how to package plugins for various alternative Camunda distributions.

Develop it

$ cd camunda-cockpit-plugins
$ npm install
$ npm run watch

When the scripts are mounted into running Docker container, development changes are immediately available in the container with page refresh.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.