chor-js

An editor for BPMN 2.0 choreography diagrams based on bpmn-js

  • Owner: bptlab/chor-js
  • Platform:
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart







chor-js

Build Status

Try it online!

View and edit BPMN 2.0 choreography diagrams in the browser.
Based on bpmn-js.

chor-js screencast

Features

  • model complex choreography diagrams
  • create and reuse roles on the fly
  • intuitively manage participant bands
  • show, hide and swap messages
  • import/export standard-compliant BPMN2 XML

chor-js supports most of the elements in the choreography diagram standard.

Installation

chor-js is packaged via npm.

Usage

Create a chor-js instance and link it to a canvas:

// Import modeler or viewer class
import ChorJS from 'chor-js/lib/Modeler';

let xml; // your BPMN2 choreography XML

// Setup modeler
let modeler = new ChorJS({
  container: '#canvas',
  keyboard: {
    bindTo: document
  }
});

// Load model
modeler.importXML(xml, {
  // [optional] ID of a specific choreography to display
  choreoID: '_choreo1'
}).then(() => {
  modeler.get('canvas').zoom('fit-viewport');
}).catch(error => {
  console.error('something went wrong: ', error);
});

For a more elaborate example of how to use the package, see our demo.
A development setup is described there as well.

As the library is based on bpmn-js, a lot of the instructions and techniques described there also work for chor-js.

Research

chor-js was presented at the ER Forum and Poster & Demos Session 2019 co-located with the 38th International Conference on Conceptual Modeling (ER 2019) in Salvador, Bahia, Brazil.
You can find the peer-reviewed paper online.

License

Licensed under the MIT license.

Main metrics

Overview
Name With Ownerbptlab/chor-js
Primary LanguageJavaScript
Program languageJavaScript (Language Count: 3)
Platform
License:MIT License
所有者活动
Created At2018-10-07 19:52:17
Pushed At2021-01-14 10:52:23
Last Commit At2021-01-11 17:56:51
Release Count16
Last Release Namev0.7.1 (Posted on )
First Release Namev0.2.0 (Posted on )
用户参与
Stargazers Count151
Watchers Count4
Fork Count26
Commits Count125
Has Issues Enabled
Issues Count76
Issue Open Count5
Pull Requests Count99
Pull Requests Open Count1
Pull Requests Close Count4
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private

没有收录该拥有者的更多项目. 推荐一个?