Camunda Team Blog

First Version of dmn.io Released

Written by Sebastian Stamm on , under Modeling category.
Today we release the first version of dmn.io, our new DMN modeling toolkit. dmn.io allows you to view and model decisions with the DMN 1.0 standard directly on the web. The dmn.io library provides a viewer and an editor that can be embedded into web applications. With this release we provide the front-end element for the latest Camunda BPM 7.4.0 alpha release, which introduced support for DMN.


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