camunda-modeler-plugin-helpers

5.1.0 • Public • Published

As of version 3.0.0 this library exposes ES modules. Use an ES module aware bundler such as Webpack or Rollup to bundle it for the browser.

Camunda Modeler Plugin Helpers 🔌

Compatible with Camunda Modeler version 2.2

Helper functions for bundling your Camunda Modeler client plugins.

How to use

bpmn-js

Register plugin to be passed as additional module:

import {
  registerBpmnJSPlugin
} from 'camunda-modeler-plugin-helpers';

const BpmnJSModule = {
  __init__: [ 'myService' ],
  myService: [ 'type', ... ]
};

registerBpmnJSPlugin(BpmnJSModule);

Register a custom moddle extension:

import {
  registerBpmnJSModdleExtension
} from 'camunda-modeler-plugin-helpers';

var moddleDescriptor = {
  name: 'my descriptor',
  uri: 'http://example.my.company.localhost/schema/my-descriptor/1.0',
  prefix: 'mydesc',

  ...
};

registerBpmnJSModdleExtension(moddleDescriptor);

License

MIT

Readme

Keywords

Package Sidebar

Install

npm i camunda-modeler-plugin-helpers

Weekly Downloads

140

Version

5.1.0

License

MIT

Unpacked Size

18.6 kB

Total Files

16

Last publish

Collaborators

  • vsgoulart
  • skaiir-camunda
  • marstamm
  • bpmn-io-admin
  • nikku
  • barmac
  • philippfromme
  • maxtru