bpmn-js

BPMN 2.0 渲染工具包和 Web 建模器。(A BPMN 2.0 rendering toolkit and web modeler.)

Github星跟踪图

bpmn-js - BPMN 2.0 for the web

Build Status

View and edit BPMN 2.0 diagrams in the browser.

bpmn-js screencast

Installation

Use the library pre-packaged
or include it via npm
into your node-style web-application.

Usage

To get started, create a bpmn-js instance
and render BPMN 2.0 diagrams in the browser:

var xml; // my BPMN 2.0 xml
var viewer = new BpmnJS({
  container: 'body'
});

viewer.importXML(xml, function(err) {

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

Checkout our examples for many
more supported usage scenarios.

Dynamic Attach/Detach

You may attach or detach the viewer dynamically to any element on the page, too:

var viewer = new BpmnJS();

// attach it to some element
viewer.attachTo('#container');

// detach the panel
viewer.detach();

Resources

Building the Project

Perform the following steps to build the library, including running all tests:

cd bpmn-js
npm install
npm run all

You may need to perform additional project setup when
building the latest development snapshot.

Please checkout our contributing guidelines if you plan to
file an issue or pull request.

bpmn-js builds on top of a few powerful tools:

  • bpmn-moddle: Read / write support for BPMN 2.0 XML in the browsers
  • diagram-js: Diagram rendering and editing toolkit

License

Use under the terms of the bpmn.io license.

主要指标

概览
名称与所有者bpmn-io/bpmn-js
主编程语言JavaScript
编程语言JavaScript (语言数: 4)
平台Cross-platform, Linux, Mac, Web browsers, Windows
许可证Other
所有者活动
创建于2014-03-10 12:57:00
推送于2025-06-02 11:24:24
最后一次提交
发布数373
最新版本名称v18.6.2 (发布于 2025-05-22 16:28:47)
第一版名称v0.0.1 (发布于 )
用户参与
星数9.1k
关注者数227
派生数1.4k
提交数3.2k
已启用问题?
问题数1416
打开的问题数132
拉请求数682
打开的拉请求数6
关闭的拉请求数203
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?