bpmn-js-subprocess-importer
v0.2.1
Published
A bpmn-js module allowing to populate the subprocesses with contents loaded from external BPMN model files
Downloads
33
Readme
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.
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