bpmn-i18n-moddle

Moddle schema for bpmn-i18n

Usage no npm install needed!

<script type="module">
  import bpmnI18nModdle from 'https://cdn.skypack.dev/bpmn-i18n-moddle';
</script>

README

bpmn-i18n-moddle

CI

Read and write BPMN 2.0 diagram files with bpmn-i18n extension in NodeJS and the browser.

Usage

import BpmnModdle from 'bpmn-moddle';
import BpmnI18nSchema from 'bpmn-i18n-moddle/resources/bpmn-i18n.json';

const moddle = new BpmnModdle({ i18n: BpmnI18nSchema });

const translation = moddle.create('i18n:Translation', { 'xml:lang': 'de', body: 'Startereignis' });

const extensionElements = moddle.create('bpmn:ExtensionElements', {
  values: [ translation ]
});

console.log(extensionElements.get('values'));

Resources

Building the Project

To run the test suite that includes XSD schema validation you must have a Java JDK installed and properly exposed through the JAVA_HOME variable.

Execute the tests via:

npm test

Perform a complete build of the application via:

npm run all

License

Use under the terms of the MIT license.