A CMMN 1.1 rendering toolkit and web modeler.
JavaScript CSS
Permalink
Failed to load latest commit information.
assets/cmmn-font
docs/project feat(renderer): initial import of CMMN 1.1 renderer Sep 15, 2015
lib fix(CmmnRenderer): adjust svg attribute assignment Nov 16, 2016
resources feat(renderer): initial import of CMMN 1.1 renderer Sep 15, 2015
tasks
test fix(Viewer): correctly export SVG Nov 18, 2016
.eslintrc chore(project): use eslint Jun 8, 2016
.gitignore feat(renderer): initial import of CMMN 1.1 renderer Sep 15, 2015
.travis.yml chore(project): use eslint Jun 8, 2016
.wiredeps fix(Viewer): correctly export SVG Nov 18, 2016
CONTRIBUTING.md feat(renderer): initial import of CMMN 1.1 renderer Sep 15, 2015
Gruntfile.js
LICENSE chore(project): update license Jan 7, 2016
README.md feat(renderer): initial import of CMMN 1.1 renderer Sep 15, 2015
index.js
package.json chore(project): release v0.7.4 Nov 18, 2016

README.md

cmmn-js - CMMN 1.1 for the web

Build Status

cmmn-js is the CMMN 1.1 diagram rendering toolkit that powers bpmn.io.

the project is still in an early stage. Documentation may be missing and examples may be broken.

Usage

Get the library via npm or bower and use it in your web applications to display CMMN 1.1 diagrams.

var CmmnViewer = require('cmmn-js');

var xml; // my CMMN 1.1 xml
var viewer = new CmmnViewer({ container: 'body' });

viewer.importXML(xml, function(err) {

  if (err) {
    console.log('error rendering', err);
  } else {
    console.log('rendered');
  }
});

Install cmmn-js

via bower

bower install cmmn-js

Make sure to include the library + all dependencies into the website.

via npm

npm install --save cmmn-js

Make sure you use browserify or the like to bundle your project and cmmn-js for the browser.

Resources

Tools

cmmn-js builds on top of a few additional powerful tools

  • cmmn-moddle: Read / write support for CMMN 1.1 XML in the browsers
  • diagram-js: Diagram rendering and editing toolkit

Building the Project

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.

License

Use under the terms of the cmmn-js license.