bpmn-i18n-moddle
v0.2.0
Published
Moddle schema for bpmn-i18n
Downloads
142
Readme
bpmn-i18n-moddle
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.