bpmn-i18n-moddle

0.2.0 • Public • Published

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.

Package Sidebar

Install

npm i bpmn-i18n-moddle

Weekly Downloads

7

Version

0.2.0

License

MIT

Unpacked Size

4.8 kB

Total Files

6

Last publish

Collaborators

  • misiekhardcore
  • abdul99ahad
  • jarekdanielak
  • vsgoulart
  • skaiir-camunda
  • bpmn-io-admin
  • nikku
  • barmac
  • philippfromme
  • maxtru