dmn-js is a DMN modeling and rendering toolkit.
the project is still in an early stage. Documentation may be missing and examples may be broken.
var DmnViewer = require('dmn-js');
var xml; // my DMN xml
var viewer = new DmnViewer({ container: 'body' });
viewer.importXML(xml, function(err) {
if (err) {
console.log('error rendering', err);
} else {
console.log('rendered');
}
});
dmn-js builds on top of a few additional powerful tools
- dmn-moddle: Read / write support for DMN XML in the browsers
- table-js: Table rendering and editing toolkit
As long as the project is in alpha stage, you must make sure you setup the whole development environment, including a number of project dependencies according to our development setup.
Use under the terms of the bpmn-js license.