View and edit CMMN 1.1 diagrams in the browser.

https://github.com/bpmn-io/cmmn-js

通过 npm 安装 cmmn-js 及依赖

npm install --save cmmn-js
var CmmnViewer = require('cmmn-js');

var viewer = new CmmnViewer({
  container: '#canvas'
});

viewer.importXML(claimsDiagram, function(err) {

  if (!err) {
    console.log('success!');
    viewer.get('canvas').zoom('fit-viewport');
  } else {
    console.log('something went wrong:', err);
  }
});
作者:Jeebiz  创建时间:2020-03-21 23:56
 更新时间:2024-08-05 18:41