Under the Hood
dmn.io is build upon the work of the awesome bpmn.io framework. Internally, dmn.io reuses a lot of the components that power the bpmn modeling toolkit. That means that if you know bpmn.io, you will feel at home with dmn.io!
To get started, you only need a few lines of code:
var DmnViewer = require('dmn-js');
var viewer = new DmnViewer({ container: '#table' });
var table; // your dmn xml
viewer.importXML(table, function(err) {
if (!err) {
console.log('success!');
} else {
console.log('something went wrong:', err);
}
});
Check out some usage examples we have put together.
It’s Open Source!
dmn-js and a number of projects it is built with are published on GitHub. We have licensed dmn-js as do whatever you want but keep the project logo in the viewer and released all other projects under the MIT license.
Feel free to look inside the projects. It is never to early to contribute bug reports and feature requests! Note however that we are still in alpha stage. Because of that documentation may be lacking and APIs might break with future releases.
What’s next?
- More convenience (e.g. validation hints, typeahead in cells)
- More support for DMN fundamentals (e.g. hit policy)
- Better separation of IT and Business roles (hiding technical information for certain roles)
- Authorizations (e.g. allow editing certain cells only)
- Integration with Camunda Cockpit