Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
Add exporter meta-data to BPMN, CMMN and DMN diagrams
- Host: GitHub
- URL: https://github.com/bpmn-io/add-exporter
- Owner: bpmn-io
- License: mit
- Created: 2018-12-19T13:02:21.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2024-01-15T15:53:15.000Z (about 1 year ago)
- Last Synced: 2024-10-29T06:23:46.332Z (3 months ago)
- Language: JavaScript
- Homepage:
- Size: 86.9 KB
- Stars: 3
- Watchers: 7
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bpmn-io - @bpmn-io/add-exporter - A helper to inject `exporter` meta-data into saved BPMN, CMMN and DMN diagrams (Extensions)
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