0.2.1 • Published 4 months ago

bpmn-js-subprocess-importer v0.2.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

bpmn-js SubProcess Importer

This bpmn-js extension adds an "Import into empty subprocess" menu item into the popup menu of collapsed and empty subprocesses. This menu item allows to populate the subprocess with contents loaded from an external BPMN model file.

bpmn-js subprocess importer in action

Use Extension

Extend your BPMN modeler with the module:

import BpmnModeler from 'bpmn-js/lib/Modeler';

import SubProcessImporterModule from 'bpmn-js-subprocess-importer';

const modeler = new BpmnModeler({
  additionalModules: [
    SubProcessImporterModule
  ]
});

To also copy custom model extensions, you need to provide the respective moddleExtensions:

import BpmnModeler from 'bpmn-js/lib/Modeler';

import SubProcessImporterModule from 'bpmn-js-subprocess-importer';

var myModdleExtensions = { /* add your moddle extensions here */ };

const modeler = new BpmnModeler({
  additionalModules: [
    SubProcessImporterModule
  ],
  moddleExtensions: myModdleExtensions
});

modeler.get('subProcessImporter').setModdleExtensions(myModdleExtensions);

License

MIT licensed

Copyright (C) 2024 Asvin Goel

0.2.1

4 months ago

0.2.0

4 months ago

0.1.0

5 months ago