0.1.0 • Published 1 year ago

bpmn-js-move-to-subprocess v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

bpmn-js-move-to-subprocess

This bpmn-js extensions adds the context menu entry to move selected elements into a subprocess.

A screencapture showing the usage of the library

The option is only available when the selected elements have a maximum of one incoming and one outgoing flow. This ensures we don't break the process.

Usage

Import it as a module into your bpmn-js application:

import MoveToSubprocessModule from 'bpmn-js-move-to-subprocess';

const modeler = new BpmnModeler({
  container: '#canvas',
  keyboard: {
    bindTo: window,
  },
  additionalModules: [
    MoveToSubprocessModule,
  ],
});

modeler.importXML(diagramXML);

Development

Run the development server with

npm run start