cmmn-moddle
Read and write CMMN 1.1 diagram files in NodeJS and the browser.
cmmn-moddle uses the CMMN 1.1 meta-model to validate the input and produce correct CMMN 1.1 XML. The library is built on top of moddle and moddle-xml.
Usage
Get the library via npm package. Bundle it for the web using browserify or webpack.
var CmmnModdle = ; var moddle = ; var xmlStr = '<?xml version="1.0" encoding="UTF-8"?>' + '<cmmn:definitions xmlns:cmmn="http://www.omg.org/spec/CMMN/20150516/MODEL" id="empty-definitions" targetNamespace="http://bpmn.io/schema/cmmn">' + '</cmmn:definitions>'; moddle;
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 test via
npm test
Perform a complete build of the library via
npm run all
License
Use under the terms of the MIT license.