Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bpmn-io/add-exporter

Add exporter meta-data to BPMN, CMMN and DMN diagrams
https://github.com/bpmn-io/add-exporter

Last synced: about 2 months ago
JSON representation

Add exporter meta-data to BPMN, CMMN and DMN diagrams

Awesome Lists containing this project

README

        

# @bpmn-io/add-exporter

[![CI](https://github.com/bpmn-io/add-exporter/workflows/CI/badge.svg)](https://github.com/bpmn-io/add-exporter/actions?query=workflow%3ACI)

Plugs into your favorite [BPMN](https://github.com/bpmn-io/bpmn-js), [DMN](https://github.com/bpmn-io/dmn-js) and [CMMN](https://github.com/bpmn-io/cmmn-js) editor and adds the `exporter` and `exporterVersion` meta-data to saved diagrams.

## Usage

```javascript
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; // ... ...
});
```

## License

MIT