@bpmn-io/add-exporter
v0.2.0
Published
Add exporter meta-data to BPMN, CMMN and DMN diagrams
Downloads
3,854
Readme
@bpmn-io/add-exporter
Plugs into your favorite BPMN, DMN and CMMN editor and adds the exporter
and exporterVersion
meta-data to saved diagrams.
Usage
import BpmnModeler from 'bpmn-js/lib/Modeler';
import AddExporter from '@bpmn-io/add-exporter';
// extend the BPMN editor with the exporter module
var modeler = new BpmnModeler({
exporter: {
name: 'my-tool',
version: '120-beta.100'
},
additionalModules: [
AddExporter
]
});
// see the meta-data appear on save
modeler.saveXML(function(err, xml) {
xml; // ... <bpmn:Definitions ... exporter="my-tool" exporterVersion="120-beta.100">...
});
License
MIT